Fedora Linux Support Community & Resources Center

Go Back   FedoraForum.org > Fedora 17/18 > Using Fedora
FedoraForum Search

Forgot Password? Join Us!

Using Fedora General support for current versions. Ask questions about Fedora and it's software that do not belong in any other forum.

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 22nd August 2006, 03:06 AM
jsabarese's Avatar
jsabarese Offline
Registered User
 
Join Date: May 2006
Location: 16802
Posts: 150
using CLI app functions, outside of terminal: how to?

hi. i'm interested in peforming some basic CLI stuff--- just to start an app really, but i want to do it in particular from Bluefish.

If you're a web developer, of if you've modified HTML to any degree in linux, chances are you probably are familiar w/ bluefish. if not, then here's the deal...

(i may get the tech terms wrong, so forgive me if i do!)
bluefish allows for the execution of commands via a Preferences > External Apps > dialogue. from there, i can do simple stuff like "firefox %s&" which will launch FF w/ the current page in focus in Bluefish to open in FF. this is cool cause i can set it to do whatever i what w/ which ever app.

but, i want to create a custom button, as w/ the browsers, but instead to activate the coldfusion server i've installed. from the CLI, this would be :
@localhost bin]$ cd /opt/jrun4/bin/
then, on a new line:
@localhost bin]$ ./jrun start cfusion

so, how do i create this series of commands from w/in bluefish? i feel like i'm stuck at the two-separate-functions junction. for example, i tried putting it all in one (yes, i have no idea-- just trial and error, w/ emphasis on error...) only ommitting the "CD" part, like so, :
@localhost bin]$ /opt/jrun4/bin/ ./jrun start cfusion

needless to say, it didn't work as i expected. how should i have composed that line?
Reply With Quote
  #2  
Old 22nd August 2006, 04:03 AM
wintersm Offline
Registered User
 
Join Date: Jul 2006
Posts: 293
/opt/jrun4/bin/jrun start cfusion

or you could create a script, the contents wouldbe

#!/bin/bash
cd /opt/jrun4/bin/
./jrun start cfusion

and run that script..
Reply With Quote
  #3  
Old 23rd August 2006, 07:32 AM
jsabarese's Avatar
jsabarese Offline
Registered User
 
Join Date: May 2006
Location: 16802
Posts: 150
hey, thanks!! that's good to know...

the script thing... now that's interesting, and of course i've seen it invariably amongst apps i've installed-- or "WINE" apps. doing a "double-click" in Konqueror might invite me to open in a text editor or "run" the script. and so i see what happens in both cases, and i see the simple beauty in that power.

my confusion then would be-- how do i do this so the O/S , or in this case, so BlueFish would know to run that script?

sorry-- this goes off the specific subject of bluefish, but i guess it does remain consistent w/ thread title-- so, i began to think of how i might eliminate this starting from BF thing altogether (preferrably) and run a script to start ColdFusion automatically when i log-into GNOME or KDE... many cool things i've considered trying ... i suppose i'm afraid of the frustration which may likely ensue... but i was thinking this would be done perhaps w/ a cronjob... and again, i'm not sure if i'm ready to chew that in the middle of the other thing i'm trying to do currently-- but it is a latent-priority, if you will-- the learning of the cron that is. i've gotten mixed ideas of it-- that it's easy, and the opposite. right now... if i dont already "know it"... i'll probably wait.

but-- back to reality-- if i want to do the scrpt route from w/in BlueFish-- considering that i can launch Firefox by simply typing in "firefox" or "firefox %s&" as above... how then do i best execute the script version? -- meaning-- do i have to launch something which points to the script, as in "APP %sh" ... or something pointing to an app, pointing to the script?

thank you!!
Reply With Quote
  #4  
Old 23rd August 2006, 09:27 PM
wintersm Offline
Registered User
 
Join Date: Jul 2006
Posts: 293
the gnome-session application, found under the user settings menu allows you to specify applcations to run on log-in, or in bluefish just put the full path to the script or application.. cant tell you exact menu names as i am at work now and having to use windoz
Reply With Quote
  #5  
Old 29th August 2006, 06:01 PM
jsabarese's Avatar
jsabarese Offline
Registered User
 
Join Date: May 2006
Location: 16802
Posts: 150
just wanted to reply to say thanks for being so helpful!

edit: hey, it just occurred to me upon reading the options under the session manager menus...

if i can start this upon startup... what about the idea of starting it as a service-- as in Run Leve 5 and Run Level 3... i really know very little about it... but, i have tweaked stuff in there to activate such things as MySQL and Apache... so, it seems it would only make sense that this might be how i'd want to-- at least in the case of a Web Application Server, such as CFMX

Last edited by jsabarese; 29th August 2006 at 06:15 PM.
Reply With Quote
Reply

Tags
app, cli, functions, terminal

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
C programming - use of functions manutdateroma Programming & Packaging 3 20th April 2007 09:15 AM
Few questions all regarding FC5 functions. Fault EOL (End Of Life) Versions 7 7th August 2006 05:01 AM
Gcalctool custom functions LinuxManMikeC Using Fedora 0 2nd August 2006 06:23 AM
Signal safe functions in FC3 Def Programming & Packaging 2 9th April 2006 07:20 PM


Current GMT-time: 23:17 (Tuesday, 18-06-2013)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat