Koozali.org: home of the SME Server

timed ping

lefajardo

timed ping
« on: July 09, 2005, 11:10:28 PM »
hello i am new to linux and really really don't know how to acomplish in this OS these simply tasks.

1.- after turning on the sme server machine i need to ping a machine, eg. 192.168.1.10 on my LAN adapter,
on win 95 i insert the ping 192.... on autoexec.bat, how can i do that on sme ?

2.- also i want to ping the same machine every 30 mins, on win 95 i add a task to the task scheduler and everithing ok, here on sme i added it to the /etc/crontab file but it disappared after a config change i was do, where is the best place to put a command like this ?

Offline raem

  • *
  • 3,972
  • +4/-0
Re: timed ping
« Reply #1 on: July 10, 2005, 03:54:21 AM »
lefajardo

>...i added it to the /etc/crontab file but it
> disappared after a config change...

Try
/etc/cron.d/yourcronjobname

See the same folder/files for examples
...