Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


  Search this Thread
Old 10-15-2003, 08:54 PM   #1
Registered: Oct 2003
Posts: 44

Rep: Reputation: 15
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
Old 10-15-2003, 09:40 PM   #2
LQ Guru
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 252Reputation: 252Reputation: 252
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.
Old 10-15-2003, 10:04 PM   #3
Registered: Oct 2003
Posts: 44

Original Poster
Rep: Reputation: 15
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
Old 10-15-2003, 10:53 PM   #4
LQ Newbie
Registered: Sep 2003
Location: Spokane, WA
Distribution: Mandrake 9.1
Posts: 2

Rep: Reputation: 0
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.


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
Shell script inside shell script treotan Linux - General 4 02-19-2009 07:34 AM
Shell Scripting: Getting a pid and killing it via a shell script topcat Programming 15 10-28-2007 03:14 AM
shell script problem, want to use shell script auto update IP~! singying304 Programming 4 11-29-2005 06:32 PM
Directory listing - Calling shell script from a CGI script seran Programming 6 08-12-2005 12:08 AM
[SHELL SCRIPT] Write at the right of the shell window Creak Linux - General 2 04-02-2004 04:00 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 07:16 AM.

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