php exec tar call fails when run via cron, works via shell

KyledKat

New Member
Can anyone explain why this line works when called from shell, but fails when called via crontab?\[code\]passthru("tar xvf $file $tarfile/application $tarfile/application_detail $tarfile/application_device_type $tarfile/genre_application");}\[/code\]The error I got emailed after cron was\[quote\] tar: itunes20100907/application: Cannot open: No such file or directory itunes20100907/application_detail\[/quote\]
 
Back
Top