Welcome to Linux Forums! With a comprehensive Linux Forum, information on various types of Linux software and many Linux Reviews articles, we have all the knowledge you need a click away, or accessible via our knowledgeable members.
Find the answer to your Linux question:
New to Linux Forums? Register here for free!
    Linux Forums > GNU Linux Zone > Linux Programming & Scripting > Launch application and/in terminal

Forgot Password?
 Linux Programming & Scripting   C, Perl, PHP, Bash Scripts, anything programming or script related post in here!

Site Navigation
Linux Articles
Linux Forums
Linux Downloads
Linux Hosting
Free Magazines
Job Board
IRC Chat
RSS Feeds


Linux Forum Topics
Linux Forums
Your Distro
Linux Resources
GNU Linux Zone
The Community
Reply
 
Thread Tools Display Modes
Old 07-03-2009   #1 (permalink)
Just Joined!
 
Join Date: May 2009
Posts: 12
Launch application and/in terminal

I scripted a simple in-terminal program (vclp), and put it in /bin . How can I run it from a launcher? Giving the launcher the command 'vclp' just makes it wait, then not do anything.
Muscovy is offline  


Reply With Quote
Old 07-04-2009   #2 (permalink)
Linux Engineer
 
b2bwild's Avatar
 
Join Date: Jul 2008
Location: Behind You!
Posts: 1,064
Send a message via MSN to b2bwild Send a message via Skype™ to b2bwild
Have you made you script executable adding execute permission?

and does it have propper sha-bang specified?
__________________
Microsoft isn't bad its just stupid.

Read my Blog at --> Penguin Inside Subscribe Feed
b2bwild is offline   Reply With Quote
Old 07-04-2009   #3 (permalink)
Just Joined!
 
Join Date: May 2009
Posts: 12
Yeah, I've compiled and added permission. I just want to know how to launch it through a link, versus typing the filepath.
Muscovy is offline   Reply With Quote
Old 07-05-2009   #4 (permalink)
Linux Engineer
 
b2bwild's Avatar
 
Join Date: Jul 2008
Location: Behind You!
Posts: 1,064
Send a message via MSN to b2bwild Send a message via Skype™ to b2bwild
try putting file in /usr/local/bin
__________________
Microsoft isn't bad its just stupid.

Read my Blog at --> Penguin Inside Subscribe Feed
b2bwild is offline   Reply With Quote
Old 07-05-2009   #5 (permalink)
Just Joined!
 
Join Date: May 2009
Posts: 12
I tried that, no avail. And I don't think putting it in bin is what I need.
To clarify, I want a desktop launcher-type way to open the program.
Muscovy is offline   Reply With Quote
Old 07-05-2009   #6 (permalink)
Linux Engineer
 
b2bwild's Avatar
 
Join Date: Jul 2008
Location: Behind You!
Posts: 1,064
Send a message via MSN to b2bwild Send a message via Skype™ to b2bwild
Post output of this.
Quote:
grep PATH= ~/.bash_profile
__________________
Microsoft isn't bad its just stupid.

Read my Blog at --> Penguin Inside Subscribe Feed
b2bwild is offline   Reply With Quote
Old 07-06-2009   #7 (permalink)
Just Joined!
 
tetsujin's Avatar
 
Join Date: Oct 2008
Posts: 66
Quote:
Originally Posted by Muscovy View Post
I scripted a simple in-terminal program (vclp), and put it in /bin . How can I run it from a launcher? Giving the launcher the command 'vclp' just makes it wait, then not do anything.
I don't know what launcher you're using... But from your description it sounds like the problem is that you want a terminal window to pop up when you run the program from the launcher? (It is possible to run a terminal program without a terminal - in this case its output will simply go nowhere, and depending on how the program is written it may terminate with SIGPIPE or it may continue running until finished)

If this is the main problem, there's a couple ways you could deal with it. First off, some launchers offer an option for how you want to run your program... In Gnome you can set a menu command to run a command normally or in a terminal...

The other option is to alter the command line to explicitly run the application within a terminal. For instance, change the command to something like "xterm -e vclp" - this will cause the menu command to run xterm and instruct it to run vclp. The downside to this approach is that the menu then can't work outside of X... (The Debian menu system, for instance, has provisions for working in text mode or in X...)
tetsujin is offline   Reply With Quote
Old 07-13-2009   #8 (permalink)
Just Joined!
 
Join Date: May 2009
Posts: 12
The xterm worked.
Out of curiousity, is there a way to make it run in the gnome terminal?
And isn't there something specifically in the program that can be added that tells it to open a terminal window?
Muscovy is offline   Reply With Quote
Old 07-13-2009   #9 (permalink)
Just Joined!
 
Join Date: May 2009
Posts: 12
Got gnome, it's gnome-terminal .
However, in both terminals it closes when I hit enter, even if it's an input.
Muscovy is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
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
Trackbacks are Off
Pingbacks are Off
Refbacks are Off

Free Magazines
Run Your Own Web Server Using Linux & Apache - Free 191 Page Preview
Learn about everything you'll need to build and maintain your Linux servers, and to deploy Web applications to them.
subscribe
Open Source Security Myths Dispelled
Dispel the five major myths surrounding Open Source Security and gain the tools necessary to make a truly informed decision for your IT organization
subscribe
InformationWeek
InformationWeek is the only newsweekly you'll need to stay on top of the latest developments in information technology.
subscribe



All times are GMT. The time now is 09:55 AM.






© 2000 - 2009 - All Rights Reserved - Property of  MAS Media

Content Relevant URLs by vBSEO 3.3.0 RC2