RE: cron job

From: David Matinyarare (d.matinyarare@iorin.gov.pl)
Date: Fri Mar 26 2004 - 04:14:15 EST


I think Daniel is right that my cron is being killed by the "init s"
command before completing its job. Now the question is how can I get to
single mode automatically and do my backup?

-----Original Message-----
From: Stepan Kucherenko [mailto:twohalf@dtd.peterstar.com]
Sent: Friday, March 26, 2004 9:00 AM
To: David Matinyarare
Subject: Re: cron job

It will not run without tty, like, for example, passwd command or some
other
system commands.
If you really shure what are you doing, you can use `expect` package,
available from sunfreeware.com, to spawn process and send some input to
it,
because expect allocates tty to itself.

---
Stepan Kucherenko
Technical group engineer, telematics service department
PeterStar Telecommunications
+7 812 329-9004, http://peterstar.net
> Been trying to run a job on V480, schedulled to kick off at 1:30. The
> job kicks off but stops runing "init s" command in one of my scripts.
> The output send to root mail is "Standard input not a tty line". What
> could be wrong?
> _______________________________________________
> sunmanagers mailing list
> sunmanagers@sunmanagers.org
> http://www.sunmanagers.org/mailman/listinfo/sunmanagers
_______________________________________________
sunmanagers mailing list
sunmanagers@sunmanagers.org
http://www.sunmanagers.org/mailman/listinfo/sunmanagers


This archive was generated by hypermail 2.1.7 : Wed Apr 09 2008 - 23:28:21 EDT