Sponsored Content
Full Discussion: i have a problem with unix
Top Forums UNIX for Advanced & Expert Users i have a problem with unix Post 302092316 by BOFH on Sunday 8th of October 2006 11:29:48 PM
Old 10-09-2006
The programs that are running from cron don't have a tty associated with the process so there is no "screen" for your script to pop up a message in.

If you don't tell a script where to send output (the > /dev/null in typical lines), output is generally e-mailed to the account that owns the crontab. If you don't add the last bit (2>&1) to the command, anything sent to STDERR will be e-mailed.

Generally, as an admin, I'm either redirecting my crontab output to a log file (for errors) or to a specific output file. For example:

Code:
0 * * * * /home/carls/bin/webscan > /home/carls/web/sunscan.html

This will create a webpage that webscan generates and e-mail any errors (STDERR output) to me.

So you really can't have a popup window created from a crontab.

Just write the info to a log file and e-mail it to yourself or to a group if more than one needs to see it.

Oh, and what's the "say" command? The only reference I can find to it is the OS X say command which converts text to audio output. Just curious.

Carl
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Unix login problem

When i am trying to login to my unix machine. It is directly loging me into root ( / ) directory, instead of my home directory. Why this is happening. And generally when this happens (4 Replies)
Discussion started by: ds_sastry
4 Replies

2. UNIX for Dummies Questions & Answers

UNIX problem? Unix programm runs windows 2000 CPU over 100%

Okee problems...!! What is happening: Unix server with some programms, workstations are windows 2000, the workstations work good but when you start a programm on the Unix server the CPU of the workstations go to 100% usage resulting that the system gets very slow. The programm well its running so... (2 Replies)
Discussion started by: zerocool
2 Replies

3. SCO

Problem during unix installation

i have a problem with installing unix after booting system by itself floppy , during checking the hardware devices computer hangs , and stops. it checks: %fpu %serial %floppy %console %pci %adapter %tape %cd-rom G hd_config in this place system got stop. remember i passed this step at... (1 Reply)
Discussion started by: uranium
1 Replies

4. UNIX for Advanced & Expert Users

Problem booting unix

Hello, We had a system shutdown last night and now the server won't boot because of volume is seriously damaged (this affects all volumes). Any suggestions on how to repair. Any suggestions welcome Thanks (1 Reply)
Discussion started by: bobman
1 Replies

5. Filesystems, Disks and Memory

Unix Sco Open Server, Windows Computers Problem Access Unix Shared Files Help!!!!!

Hello Moto I hope someone can help We's here at work, have a unix box with sco openserver 5 on it, so it has a nice gui interface.. and also a fair few windows computers.. a system admin guy b4 me, has set up a user called neil, which can, when u try to access the unix box using windows... (2 Replies)
Discussion started by: haggo
2 Replies

6. UNIX for Dummies Questions & Answers

Unix 10.2 Backup Problem

We have an older HP Unix 10.20 system that we rarely ever use anymore. Most of our jobs on it are from 1994 to 2002. Anything after that is on Windows XP. The Unix system was backed up religiously every day. Because of space constraints some of the jobs were removed from the system after a... (3 Replies)
Discussion started by: fozzybear
3 Replies

7. SCO

unix installation problem

hi, im tring installaing sco unix 5.05 in my pc but it is showing an "memory error loading kernel fd(64)unix.text loading ram disk image fd(64)rootfs" can anybody tell me how to solve this problem. my system configuration is 3.2ghz processor,1gb ram,d101ggc mother board thank u bln (1 Reply)
Discussion started by: blnprasad
1 Replies

8. Shell Programming and Scripting

pl/sql in unix problem

hi all i have written this small code. sqlplus $schema_name/$passwrd@$instance <<eof set serveroutput on; declare lv_count pls_integer; lv_option varchar2(20); begin select count(*) into lv_count from all_objects where upper(object_name)=upper('$temp_file1');... (1 Reply)
Discussion started by: infyanurag
1 Replies

9. UNIX for Advanced & Expert Users

Problem with a lp from UNIX

Hi, how we are? I have a problem, I have a PDF in unix and i call a Shellscript, it does : lp -d queue archive.pdf A simply print. I have many printers, so in some printers the PDF is printing with a diferent margin left and right margins, it cuts the really print. I try fix it,... (6 Replies)
Discussion started by: dcastellini
6 Replies

10. Shell Programming and Scripting

Typical problem in UNIX

Input file I have a file with four fields. f1,f2,f3,f4 A,1,10,00,S B,2,20,00,00,D C,3,100,00,00,G I want Output like f1|f2|f3|f4 A|1|10,00|S B|2|20,00,00|D C|3|100,00,00|G please help on this (4 Replies)
Discussion started by: bharat1211
4 Replies
cron(1M)                                                  System Administration Commands                                                  cron(1M)

NAME
cron - clock daemon SYNOPSIS
/usr/sbin/cron DESCRIPTION
cron starts a process that executes commands at specified dates and times. You can specify regularly scheduled commands to cron according to instructions found in crontab files in the directory /var/spool/cron/crontabs. Users can submit their own crontab file using the crontab(1) command. Commands which are to be executed only once can be submitted using the at(1) command. cron only examines crontab or at command files during its own process initialization phase and when the crontab or at command is run. This reduces the overhead of checking for new or changed files at regularly scheduled intervals. As cron never exits, it should be executed only once. This is done routinely by way of the svc:/system/cron:default service. The file /etc/cron.d/FIFO file is used as a lock file to prevent the execution of more than one instance of cron. cron captures the output of the job's stdout and stderr streams, and, if it is not empty, mails the output to the user. If the job does not produce output, no mail is sent to the user. An exception is if the job is an at(1) job and the -m option was specified when the job was submitted. cron and at jobs are not executed if your account is locked. Jobs and processses execute. The shadow(4) file defines which accounts are not locked and will have their jobs and processes executed. Setting cron Jobs Across Timezones The timezone of the cron daemon sets the system-wide timezone for cron entries. This, in turn, is by set by default system-wide using /etc/default/init. If some form of daylight savings or summer/winter time is in effect, then jobs scheduled during the switchover period could be executed once, twice, or not at all. Setting cron Defaults To keep a log of all actions taken by cron, you must specify CRONLOG=YES in the /etc/default/cron file. If you specify CRONLOG=NO, no log- ging is done. Keeping the log is a user configurable option since cron usually creates huge log files. You can specify the PATH for user cron jobs by using PATH= in /etc/default/cron. You can set the PATH for root cron jobs using SUPATH= in /etc/default/cron. Carefully consider the security implications of setting PATH and SUPATH. Example /etc/default/cron file: CRONLOG=YES PATH=/usr/bin:/usr/ucb: This example enables logging and sets the default PATH used by non-root jobs to /usr/bin:/usr/ucb:. Root jobs continue to use /usr/sbin:/usr/bin. The cron log file is periodically rotated by logadm(1M). FILES
/etc/cron.d Main cron directory /etc/cron.d/FIFO Lock file /etc/default/cron cron default settings file /var/cron/log cron history information /var/spool/cron Spool area /etc/cron.d/queuedefs Queue description file for at, batch, and cron /etc/logadm.conf Configuration file for logadm ATTRIBUTES
See attributes(5) for descriptions of the following attributes: +-----------------------------+-----------------------------+ | ATTRIBUTE TYPE | ATTRIBUTE VALUE | +-----------------------------+-----------------------------+ |Availability |SUNWcsu | +-----------------------------+-----------------------------+ SEE ALSO
svcs(1), at(1), crontab(1), sh(1), logadm(1M), svcadm(1M), queuedefs(4), shadow(4), attributes(5), smf(5) NOTES
The cron service is managed by the service management facility, smf(5), under the service identifier: svc:/system/cron:default Administrative actions on this service, such as enabling, disabling, or requesting restart, can be performed using svcadm(1M). The ser- vice's status can be queried using the svcs(1) command. DIAGNOSTICS
A history of all actions taken by cron is stored in /var/cron/log and possibly in /var/cron/olog. SunOS 5.10 5 Aug 2004 cron(1M)
All times are GMT -4. The time now is 11:17 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy