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 Advanced UNIX and Linux questions go here. Expert-to-Expert.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
crontab couldn't run through, help duke0001 UNIX for Advanced & Expert Users 10 02-06-2008 12:22 AM
help with crontab bob122480 Shell Programming and Scripting 3 01-22-2007 05:49 PM
Crontab gen4ik UNIX for Dummies Questions & Answers 1 01-18-2007 04:26 AM
ftp and crontab user` Shell Programming and Scripting 27 11-13-2006 05:02 PM
Crontab lo-lp-kl UNIX for Dummies Questions & Answers 2 05-05-2005 03:21 PM

Closed Thread
 
Submit Tools LinkBack Thread Tools Search this Thread Display Modes
  #1  
Old 02-26-2002
Registered User
 

Join Date: Aug 2001
Posts: 60
crontab

Hi all,

I set a job on crontab for every 10 minutes,
output will generate in to a.txt.

Can I cat a.txt into a specified terminal?
if so, please send me the script.

Thanks in advance,
Krishna
Forum Sponsor
  #2  
Old 02-26-2002
Registered User
 

Join Date: Feb 2002
Location: Brabant, Belgium
Posts: 65
If you want to know if you can access the terminals that you don't 'see' - on Linux, you have 7 bu default, on BSD 9 - shift with ALT-F1.

These are called tty1-7, and you can cat to them.
You may run into permission problems, though.

Maybe you really want to write to a log file, and then open up a terminal and monitor that logfile?

open a terminal, either xterm or Alt[Fx]

then write:
$cat >/var/log/krishna
Hey, this works


open another, then write

$tail -f /var/log/krishna

and sheck the output.
Write some more stuff into the file from the first terminal, and check the output in the second.

this is more fun with xterms ...
  #3  
Old 02-26-2002
Registered User
 

Join Date: Aug 2001
Posts: 60
Hi,

I am using xterm on Compaq true64, I am unable to create file
on /var/log, getting permission denied.

reply

  #4  
Old 02-27-2002
Registered User
 

Join Date: Feb 2002
Location: Brabant, Belgium
Posts: 65
OK.
Nothing _forces_ you to create this file in /var/log, that is just for daemons and stuff, which you are probably working on anyway.

Just put the file in your home dir, maybe create your own ~/log tree, for various projects, etc.

Atle
__________________
PS
All of the above is to be read as '... unless I am wrong'
ENDPS
Google The UNIX and Linux Forums
Closed Thread

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes




All times are GMT -7. The time now is 09:04 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008. All Rights Reserved.Ad Management by RedTyger Visit The Complex Event Processing Blog

Content Relevant URLs by vBSEO 3.2.0