Search Results

Search: Posts Made By: ringofsteel
26,602
Posted By ringofsteel
Right, so i have got it to work, only by actually...
Right, so i have got it to work, only by actually inputting every time i want it to run into the crontab, but now the next problem is that it wont do a clean shutdown :confused:
26,602
Posted By ringofsteel
Still cant get it to work.
Still cant get it to work.
26,602
Posted By ringofsteel
Yeah it has a serial port but i cant get it to...
Yeah it has a serial port but i cant get it to work with solaris, thats why i had this idea.

The original idea was to have more then one address to ping but i decided that becuase the machine is...
26,602
Posted By ringofsteel
Double checked everything, this script doesnt...
Double checked everything, this script doesnt want to run from cron :(
26,602
Posted By ringofsteel
Yeah so when i edited it, and use crontab -l it...
Yeah so when i edited it, and use crontab -l it shows up. i restart the machine and nothing.
26,602
Posted By ringofsteel
Oh, i thought you just had to use crontab -e and...
Oh, i thought you just had to use crontab -e and add it from there.
26,602
Posted By ringofsteel
hmm still no luck, it works fine aslong as i run...
hmm still no luck, it works fine aslong as i run it manually, putting it in that file doesnt seem to make any diffrence atall.
26,602
Posted By ringofsteel
I have the full path to the script in the crontab...
I have the full path to the script in the crontab file, hmm the full path to the shutdown program, could i ask what this would be with solaris 10?

just to make sure

in the crontab to run every...
26,602
Posted By ringofsteel
Now if i unplug the modem the script doesnt seem...
Now if i unplug the modem the script doesnt seem to run, or do anything.

The script doesnt seem to work unless i run it manually, can you please tell me what to put in the cronjob file to make the...
26,602
Posted By ringofsteel
Right, i think the modem was just rejecting the...
Right, i think the modem was just rejecting the ping if i pinged it constantly like the script was doing.

if i type ping 192.168.100.1 into terminal i get a host is alive.

Im running the second...
26,602
Posted By ringofsteel
One problem, the script runs forever. Can you...
One problem, the script runs forever. Can you please edit it so it only runs for say 10secs constantly when it is executed.
26,602
Posted By ringofsteel
Ignore, mistake.
Ignore, mistake.
26,602
Posted By ringofsteel
Thanks, il try the code as it is as root first....
Thanks, il try the code as it is as root first. Il post the result hang on.
26,602
Posted By ringofsteel
I cant get this to work. Could you rewrite it...
I cant get this to work. Could you rewrite it quickly for me so it is ready to be installed as cron pinging 192.168.100.1?
26,602
Posted By ringofsteel
To test the script i just put the ip address...
To test the script i just put the ip address straight in.

I have defined the script in the cron file to run every min as root in vmware.

If i pull the wire on the modem and leave for 5 mins the...
26,602
Posted By ringofsteel
Ok thanks, il do that now, in the script you...
Ok thanks, il do that now, in the script you provided do i replace cable-ip with the ip of my modem?
26,602
Posted By ringofsteel
Is this the correct way to setup the crontab, for...
Is this the correct way to setup the crontab, for the script to run every min?
...
26,602
Posted By ringofsteel
I know how to setup file systems, samba, perform...
I know how to setup file systems, samba, perform basic system administration but im very rusty on the scripting side of things.

could i ask what would be the diffrence if i installed it as a cron...
26,602
Posted By ringofsteel
Thankyou! Would the script run every so many...
Thankyou!

Would the script run every so many seconds by itself? Sorry about all the Q's iv been using solaris about 3 days.
26,602
Posted By ringofsteel
Il tell you the truth i dont really understand it...
Il tell you the truth i dont really understand it :)

Yeah i can sort the root thing out i hope, how would i go abouts installing it?
26,602
Posted By ringofsteel
Thanks! would this work with solaris 10?
Thanks! would this work with solaris 10?
26,602
Posted By ringofsteel
I have a unix machine which is on a UPS with only...
I have a unix machine which is on a UPS with only about 15mins battery life, what i would like to happen is the unix machine shutdown safely if the power fails. The way i want to do it, would have...
26,602
Posted By ringofsteel
anyone? :(
anyone? :(
26,602
Posted By ringofsteel
Help with script, shutdown if no ping responce
Hi, i would like to create a script that shuts down the system if the power fails, basicly the solaris box would load the script at startup.

Ping 192.168.1.100 every 20 secs
If cannot get...
Showing results 1 to 24 of 24

 
All times are GMT -4. The time now is 06:01 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy