I set up a cron job to execute a program that rewrites a .htpasswd file. The program reads another file to find out which logins are valid by date. Then writes a new .htpasswd file. The program works fine when executed manually, but when it runs on schedule from the crontab it executes every line of the program except the ones that create the new passwords.
These two lines do not execute when run from crontab, but do execute when run mannually: `htpasswd -cb $htpwd testlogin testpw`; and `htpasswd -b $htpwd $this_login $this_pw`; where: $htpwd = "/virtual/harmo7/public_html/hc/buy/download/.htpasswd"; crontab:33 * * * * /usr/local/bin/perl /virtual/harmo7/public_html/cgi-bin/buy/old_pw.pl This also works: 33 * * * * /virtual/harmo7/public_html/cgi-bin/buy/old_pw.pl I ran another test program to try to excecute command line commands, like copying a file and they run fine from crontab. Any suggestions?? Gia McCue __________________________________________________ Do You Yahoo!? Make a great connection at Yahoo! Personals. http://personals.yahoo.com _______________________________________________ Perl-Unix-Users mailing list. To unsubscribe go to http://listserv.ActiveState.com/mailman/subscribe/perl-unix-users