I have written a small PHP script to wrap the
at command on Ubuntu. Now I need to get the same code running on a Redhat server. Of course the output when adding and listing jobs is of course different.
at -V = 3.1.11):
job 4 at Fri Nov 12 13:41:00 2010
at -V = 3.1.8):
job 14 at 2010-11-12 13:42
Is there some way I can modify the output of the
at command to make it more uniform? I have read
man at and I cannot see anything there but perhaps I have missed some sneaky shortcut.
I am using regex to "read" the output so I could update that to support the Redhat format, but then what happens if the same is run on a different distro.