LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Shell Script Need Help (https://www.linuxquestions.org/questions/linux-newbie-8/shell-script-need-help-104460/)

mike35 10-15-2003 07:54 PM

Shell Script Need Help
 
Wanting to write a shell script for amsn so that I can undock it from the shell.So that I can close the shell command and so I can put a link on the desktop to run it being use it every day.I am a newbie and have tried writing one using kwrite and saving it to my msn directory.When I run it now i run the shell command from /home/mike/documents/msn.So far I'm not doing something right because I'm no closer now then when I started trying to write one.You have my info as to where and what directory it's in.Could someone please tell me what I have to write so that I can get it working.Then maybe have better understanding and after a few times it will be sunk in.Thought I had it down but its not working. Please help lol Thank You

trickykid 10-15-2003 08:40 PM

Why are you trying to write a script? Instead of that, why not type: /home/mike/documents/msn &

The preceding & will make it so it runs it in the background, but being a GUI type program, it should launch and then bring you back to a shell prompt.

mike35 10-15-2003 09:04 PM

I was under the impression that amsn being a program that runs from the shell command if i wanted to run it and be able to close the shell window I had to write a script.Also so that i could bring the program up from the desktop i had to point the path to that script. I typed what you said but not doing it

jediknight 10-15-2003 09:53 PM

This might help:
In the line of your script where you enter the command to run amsn, put an & after the command. This will force the program to run in the background, freeing up your shell to enter the 'exit' command, closing the window.
Alternatively, you should be able to make a link on your desktop (rightclick -- new launcher for Gnome, rightclick->Create New->Link to Application for KDE) thus relieving the need for a shell script.


All times are GMT -5. The time now is 03:00 AM.