Unix/Linux Go Back    


Shell Programming and Scripting 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??

Shell Programming and Scripting


Closed    
 
Thread Tools Search this Thread Display Modes
    #1  
Old Unix and Linux 05-02-2011   -   Original Discussion by landog
landog's Unix or Linux Image
landog landog is offline
Registered User
 
Join Date: Oct 2010
Last Activity: 13 March 2013, 9:55 AM EDT
Posts: 24
Thanks: 14
Thanked 0 Times in 0 Posts
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
Sponsored Links
    #2  
Old Unix and Linux 05-02-2011   -   Original Discussion by landog
frans's Unix or Linux Image
frans frans is offline Forum Advisor  
Registered User
 
Join Date: Oct 2009
Last Activity: 1 February 2016, 9:47 AM EST
Location: France
Posts: 839
Thanks: 4
Thanked 54 Times in 53 Posts
You can also use pgrep
Sponsored Links
Closed

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Linux More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
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 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:50 AM.