Beefy Boxes and Bandwidth Generously Provided by pair Networks Ovid
Welcome to the Monastery
 
PerlMonks  

Re^3: My script is working fine on linux but it's not working on the Windows

by marto (Chancellor)
on Nov 17, 2011 at 10:16 UTC ( #938575=note: print w/ replies, xml ) Need Help??


in reply to Re^2: My script is working fine on linux but it's not working on the Windows
in thread My script is working fine on linux but it's not working on the Windows

"Actuall in windows this programme is working fine But at the same time When I am trying this programme in windows it's not working and one more thing when i exectue my perl script in windows it's got stuck in cmd but after that when i prees enetr two or three time it will throw thius error " the system cannot" only these three word please check this if it's possible ..."

So it's working fine, apart from the fact that it doesn't work?

$y_date= `date --date="yesterday"`;

had you actually run this from the command prompt you'd notice that you're being prompted for user input, hence pressing enter multiple times provides the (invalid) input. The error you get isn't from your perl code, its because you don't understand what date does. As Corion suggested, don't reply on an external program (albeit the wrong program, which you don't seem to understand how to use) to get yesterdays date.


Comment on Re^3: My script is working fine on linux but it's not working on the Windows
Select or Download Code
Re^4: My script is working fine on linux but it's not working on the Windows
by galacticos (Initiate) on Nov 17, 2011 at 10:45 UTC

    Global symbol "$year" requires explicit package name at logscript.pl line 9. Global symbol "$day" requires explicit package name at logscript.pl line 14. Global symbol "@fileco" requires explicit package name at logscript.pl line 19. Global symbol "@grepLogs" requires explicit package name at logscript.pl line 20. Global symbol "$day" requires explicit package name at logscript.pl line 20. Global symbol "$year" requires explicit package name at logscript.pl line 20. Global symbol "@fileco" requires explicit package name at logscript.pl line 20. Global symbol "@grepLogs" requires explicit package name at logscript.pl line 22. logscript.pl had compilation errors.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://938575]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others having an uproarious good time at the Monastery: (6)
As of 2014-04-17 22:55 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    April first is:







    Results (458 votes), past polls