LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
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 04-27-2009, 01:46 PM   #1
Passions
LQ Newbie
 
Registered: Mar 2007
Distribution: RHEL 5.1
Posts: 20

Rep: Reputation: 0
Talking How to get a shell prompt back after a shortcut launches a command?


I made a shortcut on the desktop (using RHEL5.1 with KDE) that launches a script to mount a usb device.

The shortcut runs the command: "konsole -noclose -e /crib/chongmi/mountusb.sh"

It launches konsole and mounts the usb drive, but then it never returns the a prompt. It just hangs there.

Actually any command makes it hang, even "df" command never returns a prompt. "konsole -noclose -e df"

Anyone know how to make konsole return a shell prompt after executing a command?


Thanks!
Attached Thumbnails
Click image for larger version

Name:	script.jpg
Views:	7
Size:	31.4 KB
ID:	518   Click image for larger version

Name:	shortcut.jpg
Views:	12
Size:	48.2 KB
ID:	519  
 
Old 04-27-2009, 01:50 PM   #2
repo
LQ 5k Club
 
Registered: May 2001
Location: Belgium
Distribution: Arch
Posts: 8,527

Rep: Reputation: 898Reputation: 898Reputation: 898Reputation: 898Reputation: 898Reputation: 898Reputation: 898
add "&" at the end of the command
it will put the command in the background, and return to the prompt

Last edited by repo; 04-27-2009 at 02:39 PM.
 
Old 04-27-2009, 04:15 PM   #3
Passions
LQ Newbie
 
Registered: Mar 2007
Distribution: RHEL 5.1
Posts: 20

Original Poster
Rep: Reputation: 0
Actually I tried that, adding &, but that doesn't work either.

Any other ideas?
 
Old 04-27-2009, 04:18 PM   #4
repo
LQ 5k Club
 
Registered: May 2001
Location: Belgium
Distribution: Arch
Posts: 8,527

Rep: Reputation: 898Reputation: 898Reputation: 898Reputation: 898Reputation: 898Reputation: 898Reputation: 898
why don't you run the script without the console ?
Code:
/crib/chongmi/mountusb.sh
or remove the noclose option.
 
  


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
startx command in FC7 reverts me back to the command prompt sriram87 Linux - Newbie 5 01-04-2008 12:18 AM
Difference between Console, Shell, and Command Prompt Anupam Pathak Linux - Newbie 3 10-23-2005 05:40 AM
desktop shortcut for a terminal prompt mannoulla Linux - Software 9 06-07-2004 02:05 PM
desktop shortcut for a terminal prompt mannoulla Fedora 1 06-04-2004 10:21 AM
Shell coding, multi-command prompt maniac01 Programming 3 03-02-2004 11:48 AM


All times are GMT -5. The time now is 04:08 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