S
S
serg Kro2014-03-18 09:16:03
linux
serg Kro, 2014-03-18 09:16:03

How to make a command run in crontab?

There is a need to restart samba every hour. I made a task to the
root service smbd restart crontab
The command starts, but the command itself does not work. Please help..

Answer the question

In order to leave comments, you need to log in

1 answer(s)
F
FloppyFormator, 2014-03-18
@Karadar

The crontab has its own environment variable values, including PATH. Try specifying the full paths to the commands.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question