Hi,
There is a PERL script that i am using to map to a remote folder and pull in some files. I get the remote folder path as a command-line argument and assign it to a variable $strPath and i check if the folder exists like this:
unless (-d $strPath )
{
print LOG "Folder $strPath does not exist! \n";
die;
}
This line does not return an eror (i.e., it is able to detect the remote folder) when i run the perl script from command line. But the same line throws an error (folder does not exist - which means the sciprt is NOT able to detect the remote folder) when the same script is run from within a scheduled task.
Why this difference of behaviour of the SAME perl script if it is run from a scheduled task?!
Thanks and regards
Biswanath
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
| |
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.