Home Man
Search
Today's Posts
Register

BSD, Linux, and UNIX shell scripting — Post awk, bash, csh, ksh, perl, php, python, sed, sh, shell scripts, and other shell scripting languages questions here.

lost the $ prompt - am I spawning shells??

Tags
shell scripts

Login to Reply

 
Thread Tools Search this Thread
# 1  
Old 05-02-2011
lost the $ prompt - am I spawning shells??

When trying to get the correct syntax to cron a script that creates a file with the date stamp as its output, sometimes I get these results:

- from the command line, I may encounter an error that leaves me without the usual $ prompt. Am I in a new shell? I try to exit it with 'exit' or :q! and cannot get my prompt back. I can exit my putty session and start a new one to get back to a $ prompt.

- from cron, I get nothing - no error and no output file

My concern is that I am spawning processes that keep running, or shells that never die. Is that a valid concern? Is there a way I can check whether I am doing this?

Thanks,
-dog
# 2  
Old 05-02-2011
You can also use pgrep
Login to Reply

« Previous Thread | Next Thread »
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Spawning a TTY shell alvinoo Shell Programming and Scripting 3 11-13-2017 02:47 PM
Crontab spawning multiple at processes gstuart UNIX for Advanced & Expert Users 10 08-18-2008 08:27 PM
Spawning multiple threads in Unix neeto Shell Programming and Scripting 5 04-17-2008 03:10 PM
spawning multiple processes spread across two files StrengthThaDon Programming 1 09-17-2007 05:03 PM
Lost Data Lost Admin murphsr Filesystems, Disks and Memory 3 09-07-2005 02:35 PM
spawning the same program laforge UNIX for Advanced & Expert Users 9 08-11-2005 02:58 PM
Spawning a shell script JimJim Shell Programming and Scripting 5 11-24-2004 07:37 AM
Spawning new shells from the command line in OpenStep 4.2 Rocketman8541 Shell Programming and Scripting 3 09-13-2004 10:12 AM
spawning new shells using dtterm in Solaris 8 Rocketman8541 Solaris 4 08-31-2004 05:52 PM


All times are GMT -4. The time now is 03:22 PM.

Unix & Linux Forums Content Copyright©1993-2018. All Rights Reserved.
UNIX.COM Login
Username:
Password:  
Show Password