wan_jm <[email protected]> wrote: > hello all: > I found some problem of crontab in Solaris 10 u6 which is ok in S10 u5 > and before. is it a bug? > I write one perl script to edit cronjob file automatically and the > name of which is cron_switch.pl. > 1. EDITOR="/omp/s10upgrade/cron_switch.pl on" #node there is one > argument "on" after the command. > 2. run crontab -e to edit it. after which crontab gives error messages: > crontab: /omp/s10upgrade/cron_switch.pl on: No such file or directory. > from which we can see crontab take "/omp/s10upgrade/cron_switch.pl on" as > script names. > > then I use truss to prove my guess. which gives the following result. > 9394: execve("/omp/s10upgrade/cron_switch.pl on", 0xFFBFE970, 0xFFBFEB58) > Err#2 ENOENT
Make sure that the Perl script correctly starts with e.g. #!/usr/bin/perl Jörg -- EMail:[email protected] (home) Jörg Schilling D-13353 Berlin [email protected] (uni) [email protected] (work) Blog: http://schily.blogspot.com/ URL: http://cdrecord.berlios.de/private/ ftp://ftp.berlios.de/pub/schily _______________________________________________ opensolaris-code mailing list [email protected] http://mail.opensolaris.org/mailman/listinfo/opensolaris-code
