Re: crond

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



>> I've written the following script (named checkconn)
>> to be executed every 5 minutes by crond:
> ...
>> if [ $? -ne 0 ] ; then
>>     `/sbin/adsl-stop`
>>     `/sbin/adsl-start`
>> fi
> ...
>> Well, if I execute checkconn from the command line,
>> it works as expected, while when checkconn is invoked
>> by crond, it doesn't work...
>
> What do you mean by "doesn't work"? Do you see any errors?

It does nothing... but don't worry, I've solved the problem
by invoking ifdown/ifup instead of adsl-stop/adsl-start.

I guess it is a permission issue...
j3d.

>
> Rich
>
> --
> fedora-list mailing list
> fedora-list@xxxxxxxxxx
> To unsubscribe: http://www.redhat.com/mailman/listinfo/fedora-list
>


----------------------------------------
Giuseppe Greco

::agamura::

phone:  +41 (0)91 604 67 65
mobile: +41 (0)79 602 99 27
email:  giuseppe.greco@xxxxxxxxxxx
web:    www.agamura.com
----------------------------------------


[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux