Link to home
Start Free TrialLog in
Avatar of jghelfman40
jghelfman40Flag for United States of America

asked on

freebsd-update via cron

I was wondering how I would be able to do a freebsd-update via root's crontab (not /etc/crontab) with the following switches:

-s,-k and -t

for example:

@daily freebsd-update -s myserver -k longhashkey -t email@somwhere.com cron

I can run this on the command line with sudo, and it works, however I can't seem to get this to work via root's cron. The only item I have not tried is using the full path of freebsd-update in the cron.
ASKER CERTIFIED SOLUTION
Avatar of woolmilkporc
woolmilkporc
Flag of Germany image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of jghelfman40

ASKER

When I wrote the question, and I realized the only thing I didn't try was the full path, my first thought was to put the full path in and see if that worked. You answered the question in the meanwhile, and that proved the solution worked.

Thanks!