Re: script won't write to file ...

2007-07-20 Thread John W. Krahn
Gregory Machin wrote: Hi Hello, I have a script that i'm working on, I want it to write info to a log file, but I can't get it to write to the file.. I run the script as root, and I also chmod 0777 the file but still no out put ... what have it missed .. ___script___ #!/usr/bin/perl print

Re: script won't write to file ...

2007-07-20 Thread Chas Owens
On 7/20/07, Gregory Machin <[EMAIL PROTECTED]> wrote: Ok thanks, for the advise, 2 questions - what did i do wrong in my original code, cause it's based on a working example, and is IO::File included in the default perl package ? is this script has to go on an embedded device with as min dependen

Re: script won't write to file ...

2007-07-20 Thread Gregory Machin
Ok thanks, for the advise, 2 questions - what did i do wrong in my original code, cause it's based on a working example, and is IO::File included in the default perl package ? is this script has to go on an embedded device with as min dependencies as possible ? Many Thanks On 7/20/07, Chas Owe

Re: script won't write to file ...

2007-07-20 Thread Chas Owens
On 7/20/07, Gregory Machin <[EMAIL PROTECTED]> wrote: Hi I have a script that i'm working on, I want it to write info to a log file, but I can't get it to write to the file.. I run the script as root, and I also chmod 0777 the file but still no out put ... what have it missed .. snip Simplify,

script won't write to file ...

2007-07-19 Thread Gregory Machin
Hi I have a script that i'm working on, I want it to write info to a log file, but I can't get it to write to the file.. I run the script as root, and I also chmod 0777 the file but still no out put ... what have it missed .. ___script___ #!/usr/bin/perl print "hello"; use use strict; #p