The UNIX and Linux Forums  


Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Advanced & Expert Users
.
google unix.com



UNIX for Advanced & Expert Users Expert-to-Expert. Learn advanced UNIX, UNIX commands, Linux, Operating Systems, System Administration, Programming, Shell, Shell Scripts, Solaris, Linux, HP-UX, AIX, OS X, BSD.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
how to make a line BLINKING in output and also how to increase font size in output mail2sant Shell Programming and Scripting 3 04-14-2008 08:30 AM
piping output of tail running in background anuramdas Shell Programming and Scripting 4 07-27-2007 03:20 PM
background job babayeve UNIX for Dummies Questions & Answers 3 05-25-2005 11:08 AM
How to store output in variable when put in background sanjay92 UNIX for Dummies Questions & Answers 1 02-22-2005 03:41 PM
Background job rdbooth UNIX for Dummies Questions & Answers 1 03-23-2004 07:59 AM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 08-08-2006
smtpgeek smtpgeek is offline
Registered User
  
 

Join Date: Nov 2005
Posts: 11
background output

Question:
I run a script to check a filesystem or two and put it in the background vi a ssh session. Now, upon killing the window(ssh session) the script will of course keep running, BUT if I log back into the box via ssh how can I get the output of the script back to my ssh session/window?

Is this at all possible?

TIA,
BA
  #2 (permalink)  
Old 08-08-2006
jim mcnamara jim mcnamara is offline Forum Staff  
...@...
  
 

Join Date: Feb 2004
Location: NM
Posts: 5,777
If you executed the process this way:
Code:
nohup myproc  &
without redirection, then nohup.out in the current directory has the output.
  #3 (permalink)  
Old 08-08-2006
smtpgeek smtpgeek is offline
Registered User
  
 

Join Date: Nov 2005
Posts: 11
In your example, 'nohup' is supposed to be the name of the output file?...and 'myproc' is the script? This does not work so I must be missing something....the shell looks for nohup as a command.

-BA
  #4 (permalink)  
Old 08-08-2006
vgersh99's Avatar
vgersh99 vgersh99 is offline Forum Staff  
Moderator
  
 

Join Date: Feb 2005
Location: Boston, MA
Posts: 5,128
Quote:
Originally Posted by smtpgeek
In your example, 'nohup' is supposed to be the name of the output file?...and 'myproc' is the script? This does not work so I must be missing something....the shell looks for nohup as a command.

-BA
no, 'nohup' is a command [man nohup].
the output of 'nohup myproc &' is file 'nohup.out'
Closed Thread

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 09:10 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0