Re: at -f working incorrectly



I always do one this when scheduling jobs:

cat shellscript |at now + {whenever}
BV

--- Mark Vitale <mark.vitale@xxxxxxxxxxx> wrote:

Dear listers,

I need help with a strange problem I'm seeing only at a customer site
running AIX 5.3. My AIX 5.3 system works correctly with the same commands.

My product writes a single-line command to a file 'atcommand', then
schedules the command using the at command -f option, like this:

at -f atcommand now +1 minutes

Just to rule out my code, I came up with a series of commands to issue
manually in an attempt to duplicate the problem.

When I issue 'at -vl' at my site, I see that the contents of the file have
been scheduled correctly:
$ at -f testatcommand now +1 minutes
job markv.1164896262.a at Thu Nov 30 09:17:42 2006
$ at -vl
========================
markv.1164896262.a Thu Nov 30 09:17:42 2006
========================
/home/markv/test.sh

But when my customer does the same at his site, he sees that the name of
the file itself has been scheduled as a literal command. Of course, this
command is not found:

dradbp01:root:/perfman/DRADBP01#cat testatcommand
/perfman/DRADBP01/test.sh

dradbp01:root:/perfman/DRADBP01#at -f testatcommand now +1 minutes
Job root.1164878298.a will be run at Thu Nov 30 09:18:18 CUT 2006.

dradbp01:root:/perfman/DRADBP01#at -vl
========================
root.1164878298.a Thu Nov 30 09:18:18 CUT 2006
========================
testatcommand


What could cause the -f option to behave this way? The customer is running
all this under root, by the way (not my idea or requirement!), so I don't
think it can be a permissions problem. I've also verified that he's using /
usr/bin/at as one would assume.

I've already searched IBM's AIX support site and the list archives but
found nothing to explain this. I am a relative newcomer to AIX, so any
help or suggestions would be greatly appreciated.

Thanks in advance,

-Mark Vitale
Senior Software Engineer
ISM - www.perfman.com





____________________________________________________________________________________
Do you Yahoo!?
Everyone is raving about the all-new Yahoo! Mail beta.
http://new.mail.yahoo.com



Relevant Pages

  • Re: at -f working incorrectly
    ... I always do one this when scheduling jobs: ... I need help with a strange problem I'm seeing only at a customer site ... My AIX 5.3 system works correctly with the same ... My product writes a single-line command to a file 'atcommand', ...
    (AIX-L)
  • at -f working incorrectly
    ... I need help with a strange problem I'm seeing only at a customer site ... running AIX 5.3. ... My AIX 5.3 system works correctly with the same commands. ... My product writes a single-line command to a file 'atcommand', ...
    (AIX-L)
  • Re: Telnet disconnects
    ... my customer is AIX. ... The carriage return/line feed is interesting; ... command, which doesn't actually have an "icrlf" option, but does have an "icrnl" option. ...
    (comp.databases.pick)
  • Re: Sysback failures
    ... The problem is that the exact same command, run the exact same way, on ... the exact same rev of AIX on a different machine (but near ... our customer wants this done. ...
    (comp.unix.aix)
  • Re: Defeating The Top 1%; Request For Criticism
    ... The basic building block of all armies, such as the customer group, is ... The smallest group of soldiers organized to ... A platoon consists of 16 to 44 soldiers (2 ... concentrated within a single city neighborhood, would command a very ...
    (sci.econ)

Loading