LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   How to get a shell prompt back after a shortcut launches a command? (https://www.linuxquestions.org/questions/linux-newbie-8/how-to-get-a-shell-prompt-back-after-a-shortcut-launches-a-command-722034/)

Passions 04-27-2009 12:46 PM

How to get a shell prompt back after a shortcut launches a command?
 
2 Attachment(s)
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!

repo 04-27-2009 12:50 PM

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

Passions 04-27-2009 03:15 PM

Actually I tried that, adding &, but that doesn't work either.

Any other ideas?

repo 04-27-2009 03:18 PM

why don't you run the script without the console ?
Code:

/crib/chongmi/mountusb.sh
or remove the noclose option.


All times are GMT -5. The time now is 12:14 PM.