Thread View: comp.sys.sequent
2 messages
2 total messages
Started by Dewey Henize
Sun, 12 Mar 1989 02:34
Suggestions needed for crontab entry
Author: Dewey Henize
Date: Sun, 12 Mar 1989 02:34
Date: Sun, 12 Mar 1989 02:34
40 lines
2174 bytes
2174 bytes
Hello all. I'm the admin for a Sequent S81, DYNIX 3.0.12. I have several things that I need to run at fixed times with effective user IDs other than root. I'm having a lot of trouble with this, perhaps some of you out there have addressed this and come up with better ideas than I have... On other machines, I've been able to use a crontab line of the form: 15,30 4,8 * * * su uucp </usr/lib/uucp/cleanupstuff but when I try that here nothing happens, although running as root I can give the command 'su uucp </usr/lib/uucp/cleanupstuff' and it appears to go ok. Reading the man page it appeared that perhap the magic trick was to use the '%' sign, like: 15,30 4,8 * * * su uucp % /usr/lib/uucp/cleanupstuff but that didn't work. What I'm using now, but am really uncomfortable with is: 15,30 4,8 * * * echo 'sh /usr/lib/uucp/cleanupstuff' | su uucp mostly this seems to work. There are times it doesn't seem to get executed though, so I have a lot of doubts about it. Obviously the ideal would be a system that I've run into on Sun at release 4 and above. Each user/id has its own crontab file, and cron automagically uses that id when running command from the crontab entry. (I'm told that is a SYSV standard/enhancement, my experience in that area is minimal though.) Please, if you have any useful workarounds on this post or send mail. If there is a lot of interest and I get mail, I'll post a summary. Dewey Henize Execucom Systems -- -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- | There is nothing in the above message that can't be explained by sunspots. | | execu!dewey Dewey Henize | | Can you say standard disclaimer? I knew you could. Somehow... |
Re: Suggestions needed for crontab entr
Author: pwolfe
Date: Tue, 28 Mar 1989 06:18
Date: Tue, 28 Mar 1989 06:18
11 lines
964 bytes
964 bytes
I got by this limitation when I installed Paul Vixie's System V Cron program,
which came aross comp.sources.unix, and is currently available from
uunet.uu.net (send me mail if you don't have internet access)
This lets you set up individual crontabs for any user (regular people can use
it too - if you install the command for everyone). So now I have separate
crontabs for daemon, root and uucp - no more kludgy "su < ..." stuff.
Patrick Wolfe (pat@kai.com, {uunet,uiucuxc,sequent}!kailand!pat)
System Manager, Kuck and Associates
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads