The UNIX and Linux Forums  


Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
.
google unix.com



Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here.

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
top output new2ss UNIX for Advanced & Expert Users 4 03-11-2008 04:58 AM
how to get output by awk milo Shell Programming and Scripting 13 02-07-2007 08:19 AM
ldd output laddu UNIX for Dummies Questions & Answers 3 01-28-2007 02:30 AM
ps output Shobhit UNIX for Advanced & Expert Users 2 03-10-2002 09:45 PM

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 12-09-2001
kanang kanang is offline
Registered User
  
 

Join Date: Dec 2001
Location: kuala lumpur
Posts: 21
divert output

i want to run a ksh script 'myscript' at the background and direct the system to return any error msg to /tmp/myscript.err and the output of 'myscript' to /tmp/myscript.out
how do i do that at the command prompt? thank you.
  #2 (permalink)  
Old 12-10-2001
krishna krishna is offline
Registered User
  
 

Join Date: Aug 2001
Posts: 60
Re: divert output

Hi kanang,

Try with this in ksh

$yourscript.sh 2>tmp/myscript.err >tmp/myscript.out &
  #3 (permalink)  
Old 12-10-2001
kanang kanang is offline
Registered User
  
 

Join Date: Dec 2001
Location: kuala lumpur
Posts: 21
hi krishna,

thanks for your reply. it works that way.
  #4 (permalink)  
Old 12-10-2001
krishna krishna is offline
Registered User
  
 

Join Date: Aug 2001
Posts: 60
ok, fine

Last edited by krishna; 12-10-2001 at 02:39 AM..
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:32 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