Hi folks,

I'm having a problem queuing an 'at' job from a root preexec.

I have a shell script which queries LDAP for per-user quota information and sets the 
local filesystem quotas accordingly. This runs, and runs fine, out of the root preexec 
on our users home share.

But we bin running a server with broken quotas for a while, and had to turn quotas off.

We're ready to try again now, but most of our users are WAY over quota. So we're gonna 
set their hard limits above current usage in LDAP, and they'll get seven days grace 
from when they next log in. However, that will leave the LDAP stored hard limits 
artificially high. So I want to drop an 'at' job in the queue, the first time a user 
logs in to the new server, that will reset the user's limits in LDAP to what they were.

But I can't queue even a simple at job from a pre-exec script.

I can queue jobs manually no problem.

I drop the lines:

wall "$1 LOGIN"
/usr/bin/at now + 1 minute /root/atjob

on the end of my preexec script.

/root/atjob exists and contains:

wall "JOBJOB"



I use smbclient to access the home share, I get the wall output from the preexec fine, 
but the job doesn't get queued.

Am I missing something here. ( Not many points for that one, I clearly AM missing 
something )
If so, what?


Alternative approaches to this for solving the wider problem would be welcome too.

Hope someone can help. I could do with implementing this before Monday. Gulp.


Martin Whinnery
( merely the ) Assistant Network Manager
South Birmingham College
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  http://lists.samba.org/mailman/listinfo/samba

Reply via email to