The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
.
google unix.com



UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !!

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
background process vinod.thayil Shell Programming and Scripting 2 01-12-2009 03:02 AM
background process jerardfjay Shell Programming and Scripting 1 09-07-2005 11:03 AM
background process k_oops9 Shell Programming and Scripting 3 11-15-2004 04:15 AM
background process badshah High Level Programming 3 05-30-2003 11:01 AM
capture the process id when starting a background process jleavitt Shell Programming and Scripting 10 04-04-2002 08:04 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 07-07-2005
zylwyz's Avatar
zylwyz zylwyz is offline
Registered User
  
 

Join Date: Jun 2005
Location: I'm living in Unix :)
Posts: 53
background process

How, can I hide background process's output?
  #2 (permalink)  
Old 07-07-2005
vigsgb vigsgb is offline
Registered User
  
 

Join Date: Mar 2005
Posts: 22
When you submit the background process you can redirect the output to a file ect..

this_process.ksh > /dev/null &

this_process.ksh > /home/mine/this_process.dat &

Hope this helps!
  #3 (permalink)  
Old 07-08-2005
zylwyz's Avatar
zylwyz zylwyz is offline
Registered User
  
 

Join Date: Jun 2005
Location: I'm living in Unix :)
Posts: 53
This is not working with my script, You can try too for example:
Code:
#!/bin/sh
sleep 5
ssh --help  > ~/data.file
write user -t "hi"  > ~/data.file
the output still showing!
I need help, please help me
  #4 (permalink)  
Old 07-08-2005
vino's Avatar
vino vino is offline Forum Staff  
Supporter (in vino veritas)
  
 

Join Date: Feb 2005
Location: Bangalore, India
Posts: 2,798
Quote:
Originally Posted by zylwyz
and then: ./script > ~/data.file
the output still showing!
I need help, please help me

try this
Code:
./script > ~/data.file &
Vino
  #5 (permalink)  
Old 07-08-2005
zylwyz's Avatar
zylwyz zylwyz is offline
Registered User
  
 

Join Date: Jun 2005
Location: I'm living in Unix :)
Posts: 53
No, I mean ... I need use like:
ssh --help &
Only one command, not a script, some programs like "ssh" can't use "> file", so
how can I hide this output?
  #6 (permalink)  
Old 07-12-2005
vigsgb vigsgb is offline
Registered User
  
 

Join Date: Mar 2005
Posts: 22
Quote:
Originally Posted by zylwyz
No, I mean ... I need use like:
ssh --help &
Only one command, not a script, some programs like "ssh" can't use "> file", so
how can I hide this output?

To supress the output redirect either standard out or standard error.

The following works on my system. This is redirecting standard err.

Code:
ssh --help 2> /dev/null &
This is redirecting standard out and will show the output as the help is sent to standard error.

Code:
ssh --help 1> /dev/null &
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 07:03 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