>
> system ("chmod 777 ./$file");
> open(Q, "> $file") ;
> print Q "$content";
> close(Q);
> }
> system ("chmod 744 ./$file");
> }
>
> create_file("joel_test","hello");
> 0;
>
> This script when run from the command line works fine but from the cron create the
>file empty!!!! Has anybody experienced this
I think the current working directory is different when you run it from the commmand
line and by the cron. Try to use the absolute path instead of '.' in
the filenames.
Bao
--
BAO RuiXian, PROGRAMMER, Technologies Team, Project Services Group
AtBusiness Communications Corp., Kaapeliaukio 1, FIN-00180 Helsinki
tel. +358-9-2311 6674, mob. +358-50-329 6275, fax +358-9-2311 6601
http://www.atbusiness.com, email: [EMAIL PROTECTED]