LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 11-22-2006, 07:57 AM   #1
annehoog
Member
 
Registered: Jan 2002
Location: Nederland
Distribution: RH 8 Psyche and Debian Woody
Posts: 373

Rep: Reputation: 30
exec command in Launcher?


Hi,

I have an application which boots like this:
exec ./mgc MGC.im

I've been trying to create a launcher on the panel to start the application, but haven't got it to work.
Any suggestions?

Thank you!

Anne
 
Old 11-22-2006, 09:24 AM   #2
IndyGunFreak
Senior Member
 
Registered: Aug 2003
Location: Indpls
Distribution: Laptops: Debian Jessie XFCE, NAS: OpenMediaVault 3.0
Posts: 1,355

Rep: Reputation: 70
Quote:
Originally Posted by annehoog
Hi,

I have an application which boots like this:
exec ./mgc MGC.im

I've been trying to create a launcher on the panel to start the application, but haven't got it to work.
Any suggestions?

Thank you!

Anne
What distro, its different under all of them.
 
Old 11-22-2006, 11:15 AM   #3
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910
Quote:
Originally Posted by annehoog
Hi,

I have an application which boots like this:
exec ./mgc MGC.im

I've been trying to create a launcher on the panel to start the application, but haven't got it to work.
Any suggestions?

Thank you!

Anne
I guess the problem you're facing is that you're
running it from its own directory.

I'd suggest that you wrap a script around it.

Code:
#!/bin/sh
cd /path/to/program
exec ./mgc MGC.im
Save the file, make it executable (chmod u+x <name>)
and tie that to your panel.


Cheers,
Tink
 
Old 11-23-2006, 04:53 AM   #4
annehoog
Member
 
Registered: Jan 2002
Location: Nederland
Distribution: RH 8 Psyche and Debian Woody
Posts: 373

Original Poster
Rep: Reputation: 30
It sounds so simple when yuo guys say it, why can't I come up with that???

I'll try it as soon as I get back home

Anne
ps; I'm on Ubuntu.
 
Old 11-23-2006, 11:08 AM   #5
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910
Quote:
Originally Posted by annehoog
It sounds so simple when yuo guys say it, why can't I come up with that???
Because you never had to before? :}

Quote:
I'll try it as soon as I get back home
Keep us posted!

Quote:
ps; I'm on Ubuntu.
Time to modify your profile ... ;}

And to answer the question in the sig: No; but the fact that you
didn't give up on Linux in over 4 years does!



Cheers,
Tink
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
exec command not working suruchi Linux - Software 2 06-12-2006 01:02 AM
exec bash command bendeco13 Linux - General 6 10-31-2004 03:50 PM
php: output the result of exec( $command ) zovres Programming 6 08-27-2004 06:41 PM
launching mozilla with the run command or applicaton launcher allohakdan Linux - Newbie 2 11-19-2003 07:51 PM
Kylix (delphi) missing exec command? RayJ Programming 2 09-24-2003 12:35 AM


All times are GMT -5. The time now is 06:36 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration