On 10/11/06, Ken Foskey <[EMAIL PROTECTED]> wrote:
On Wed, 2006-10-11 at 16:45 +0400, Mazhar wrote: > I have created the file in Windows and have pasted the entries in HP-UNIX (i > mean copied). I cannot find the command dos2unix in HP UX. > easy check, change command line to this: #!/usr/bin/perl -w to strip the carriage returns try something like this: tr -d '\r' < perl.pl > perl.pl.new or for a simple perl way of doing it. (Untested, reasonably sure it is right) #!/usr/bin/perl -w while( <> ) { s/\r//; print; } -- Ken Foskey FOSS developer -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>
Hi Ken,
From the help above i created a new perl code and i was successfull in
running the code by typing the command /scripts/newxxx.pl but the same is not executed by cron i have the cron entry as below 10 * * * * /scripts/newxxx.pl Thanks in Advance Regards Mazhar