Hi,
A quite basic question I'm afraid. Somehow I had got it into my head that in C all variables must be declared at the start of a function block. Certainly this is convention and I would go so far as to say good practice. But from a quick test using a couple of different compilers it...
To expand slightly the file operators are generally unary boolean operators. i.e. they take a single argument (a scalar which evaluates to a filename or filehandle) and return true or false.
They are not command line switches!
"perl -e" does something quite different.
The code in my first post could be used as it is to form part of a perl program.
Yes, there are a number of file test operators - -w for a writeable file, -r for readable and so on. No doubt there's a complete list somewhere in the perl documentation.
izivt
I am not a perl programmer in any way shape or form, but just a suggestion which may help.
When used in the way you have the at command submits the at-job and writes scheduled time and at-job-id to standard error, not STDOUT.
In order to capture standard error as well as STDOUT use |&...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.