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

|
Thread Tools Search this Thread
Search this Thread:
Advanced Search

Similar Threads 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 03:47 PM
Unable to move from rsc prompt to ok prompt manoj.solaris Solaris 9 05-26-2014 12:43 PM
How to Change the % prompt to - prompt in UNIX? manjiri sawant UNIX for Dummies Questions & Answers 2 07-18-2013 12:51 PM
Shell script executed from Informatica ETL tool is spawning 2 processes for one script chekusi Shell Programming and Scripting 2 05-21-2013 11:00 AM
Multiple pconsole processes spawning indefinetly Janpol AIX 3 03-22-2013 01:14 PM
Help! imapd is spawning multiple processes, all of a sudden, for no reason! fishsponge UNIX for Advanced & Expert Users 0 02-26-2009 12:19 PM
Crontab spawning multiple at processes gstuart UNIX for Advanced & Expert Users 10 08-18-2008 09:27 PM
Spawning multiple threads in Unix neeto Shell Programming and Scripting 5 04-17-2008 04:10 PM
spawning multiple processes spread across two files StrengthThaDon Programming 1 09-17-2007 06:03 PM
Lost Data Lost Admin murphsr Filesystems, Disks and Memory 3 09-07-2005 03:35 PM
spawning the same program laforge UNIX for Advanced & Expert Users 9 08-11-2005 03:58 PM
Spawning a shell script JimJim Shell Programming and Scripting 5 11-24-2004 08:37 AM
Spawning new shells from the command line in OpenStep 4.2 Rocketman8541 Shell Programming and Scripting 3 09-13-2004 11:12 AM
spawning new shells using dtterm in Solaris 8 Rocketman8541 Solaris 4 08-31-2004 06:52 PM
All times are GMT -4. The time now is 05:56 PM.

Unix & Linux Forums Content Copyright 1993-2018. All Rights Reserved.