Re: Cron ?
On Aug 27, 12:26 pm, Terry A Haimann <te...@xxxxxxxxxxxxxx> wrote:
I tried the following:
0 0 * * * /bin/su - MyUser -c /path/your-FreePascal-program
And when it ran I got the following message:
standard in must be a tty
I have seen this message before when trying to run a script that then
prompts for a Password:
you must be a tty (or have keyboard available) to type in a password.
If you ran your cron entry from root's cron, I'd bet that you would
not get the same message, because root does not have to supply a
password to su to another user.
.
Relevant Pages
- Re: Cron ?
... standard in must be a tty ... from a command prompt. ... By default cron does not create an user environment. ... I have not tested: cron entry ... (linux.redhat) - Re: OSR5: how to find out disabled terminals by authorization subsystem?
... >> any command to see which tty*'s have fallen under the security lock. ... how can I find out from a pure command line which terminals are locked? ... or put it in a daily cron script to notify me by email or some such. ... # We find out the maximum errors allowed in the system when logging in at a TTY. ... (comp.unix.sco.misc) - Re: Displaying print messages- Emacs
... Avoids the need to change the script. ... let's assume that you're at the shell prompt from inside Emacs ... detecting that its output did not appear to be a interactive (a TTY). ... platform C library) to adjust buffering based on that status, ... (comp.lang.python) - Re: Invocation environment detection
... > same script from he commnd line and from cgi, ... The file test operator -t tells you if the filehandle is a tty or not. ... called from cmdline, the sub returns false. ... if you use a POSIX compliant system ... (perl.beginners) - Re: Redirection output for a program in background
... to redirect the standard output on the fly to a terminal ... The script could determine the tty. ... making the user a member of the group tty would solve it. ... (comp.os.linux.misc) |
|