The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > High Level Programming
.
google unix.com



High Level Programming Post questions about C, C++, Java, SQL, and other programming languages here.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
How to find the jobs running in background and stop srinivas_paluku Shell Programming and Scripting 7 01-28-2008 08:41 PM
Notification from Background jobs vibhor_agarwali UNIX for Advanced & Expert Users 19 06-20-2007 06:29 AM
background jobs exit status and limit the number of jobs to run GrepMe Shell Programming and Scripting 1 06-11-2007 07:56 PM
Checking background jobs from another session vikingshelmut UNIX for Dummies Questions & Answers 3 10-12-2005 06:34 PM
background jobs qsi Shell Programming and Scripting 4 11-24-2004 05:45 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 11-24-2005
Jeremiorama Jeremiorama is offline
Registered User
  
 

Join Date: Nov 2005
Posts: 1
Background jobs

Hi there,

I'm quite new to UNIX for programming. I have a script that does this:

Shows on screen real-time results taken from phone calls and logs them in a file.

However, when I start my script, I want my script to start logging in the file in the background, so I can continue working on the terminal. How can you make a script working in the background and not disabling me from working with the unix terminal?

Thanks,
  #2 (permalink)  
Old 11-25-2005
blowtorch's Avatar
blowtorch blowtorch is offline Forum Advisor  
Supporter
  
 

Join Date: Dec 2004
Location: Singapore
Posts: 2,350
You can run your script like this:

Code:
your_script > /path/to/logfile 2>/dev/null&

This will print valid output to your logfile and send all errors to /dev/null

Moderators,
Please move this to the dummies/scripting forums.
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:54 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