02-22-2012
Firstly, I think that you need a "-f" between the expect string and the command string.
Secondly, most errors like this with expect under cron are caused by terminal or environment variable issues. A cron job knows nothing about TERM variable so if the job requires input, then it doesn't know where to go to get it. It also doesn't know where to send any output since it has no TERM. Send output to /dev/null if you can. Repeat, check terminal and environment variables needed by cron.
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
hi folks,
I need an explanation on cron jobs with an example (4 Replies)
Discussion started by: vijaysabari
4 Replies
2. UNIX for Dummies Questions & Answers
I was wondering if itīs possible to cron job not to run on a certian day and time. Iīve got a job that runs everyday at 08:00
but would like it not to run on the 20:th between 08:00 and 10:00
Anyone know if this is possible, and if. How do i do it?
regards...
dOzY (3 Replies)
Discussion started by: dozy
3 Replies
3. UNIX for Dummies Questions & Answers
Where can someone find info on Cron Jobs? Very new to UNIX and the PC I inherited looks to have several of them. Looks like they are some kind of background program that runs automatically at specified times. Would like to delete some of them and know more about them. (6 Replies)
Discussion started by: dereckbc
6 Replies
4. Solaris
whats up,
Have some questions about cron jobs, I am fairly new to the unix os.
My cronjob sends all output to my mail, does anyone know how to redirect output to come out on the screen???
Thanks...... (6 Replies)
Discussion started by: lewisoco
6 Replies
5. UNIX for Advanced & Expert Users
I need to monitor my cron jobs with another unix machine since occasionally the cron will go down on the main server but there are no errors. Can anyone help with a script to write to use the cron on the back up machine to monitor the main server?
I am using SCO and the cron jobs have been... (3 Replies)
Discussion started by: rmarral
3 Replies
6. Shell Programming and Scripting
I do not have the luxery of a server that i can try on, so i had to post my qn here.
Say i have two jobs in the cron table, the jobs are scheduled 2 mins apart. Assuming the first jobs does a lot of operations and takes > 2 mins. Will the second job be executed? Will Unix actually have a queue... (3 Replies)
Discussion started by: new2ss
3 Replies
7. Solaris
I'm trying to run cron jobs to start any inhibited processes after a system reboot.
I can schedule th cron, but i'm confused as to how to incorporated the reboot, since reboot is scheduled at different times, once every month.
How can I write this to start every 15 min after after a reboot
... (2 Replies)
Discussion started by: Remi
2 Replies
8. HP-UX
i am new for cronjobs
can someone please tell me what logic is behind these RED Numbers and stars below?
--> crontab -l
00 1 * * * /home/scripts/TarprodContent > /tmp/MprodBkup.log 2>&1
00 1 * * * /home/scripts/TarTprodContent > /tmp/TprodBkup.log 2>&1
00 1 * * *... (5 Replies)
Discussion started by: ajadaun
5 Replies
9. Solaris
how to Put a cron entry which should be same script triggered on every Saturday and 1st of every month at 01.00 GMT.
0 2 1 * 6 --( At 2.00 GMT every sat & on 1st of every month)
the above syntax is correct?
Thanks (1 Reply)
Discussion started by: kurva
1 Replies
10. Solaris
There are two jobs in Solaris , Cron and at jobs..
I know how to disable or enable cron jobs.
How can I enable at jobs and disable it.
Kindly help.
Rj (2 Replies)
Discussion started by: jegaraman
2 Replies
LEARN ABOUT HPUX
backup_delvolset
BACKUP_DELVOLSET(8) AFS Command Reference BACKUP_DELVOLSET(8)
NAME
backup_delvolset - Deletes one or more volume sets from the Backup Database
SYNOPSIS
backup delvolset -name <volume set name>+ [-localauth]
[-cell <cell name>] [-help]
backup delvols -n <volume set name>+ [-l]
[-c <cell name>] [-h]
DESCRIPTION
The backup delvolset command deletes each volume set named by the -name argument, and the volume entries each contains, from the Backup
Database. The backup listvolsets command lists the volume sets (and their volume entries) currently defined in the Backup Database.
CAUTIONS
Deleting a temporary volume set is possible only within the interactive session in which it was created. Exiting the interactive session
also destroys the temporary volume set automatically.
OPTIONS
-name <volume set name>+
Names each volume set to delete.
-localauth
Constructs a server ticket using a key from the local /etc/openafs/server/KeyFile file. The backup command interpreter presents it to
the Backup Server, Volume Server and VL Server during mutual authentication. Do not combine this flag with the -cell argument. For more
details, see backup(8).
-cell <cell name>
Names the cell in which to run the command. Do not combine this argument with the -localauth flag. For more details, see backup(8).
-help
Prints the online help for this command. All other valid options are ignored.
EXAMPLES
The following command deletes the volume set called user and all volume entries in it:
% backup delvolset user
PRIVILEGE REQUIRED
The issuer must be listed in the /etc/openafs/server/UserList file on every machine where the Backup Server is running, or must be logged
onto a server machine as the local superuser "root" if the -localauth flag is included.
SEE ALSO
backup(8), backup_addvolentry(8), backup_addvolset(8), backup_delvolentry(8), backup_listvolsets(8)
COPYRIGHT
IBM Corporation 2000. <http://www.ibm.com/> All Rights Reserved.
This documentation is covered by the IBM Public License Version 1.0. It was converted from HTML to POD by software written by Chas
Williams and Russ Allbery, based on work by Alf Wachsmann and Elizabeth Cassell.
OpenAFS 2012-03-26 BACKUP_DELVOLSET(8)