Search Results

Search: Posts Made By: porter
11,106
Posted By porter
The three main resources are (a) CPU, the...
The three main resources are

(a) CPU, the performance of this will depends on clockspeed, memory, cache, number, whether program supports multiple processors

(b) IO, input/output such as disks,...
Forum: Solaris 01-07-2008
10,111
Posted By porter
Can you put Samba on the Solaris box?
Can you put Samba on the Solaris box?
4,902
Posted By porter
or this.. while read line do ... ...
or this..

while read line
do
...
done <data
32,104
Posted By porter
Change the first line to #!/bin/sh -x ...
Change the first line to

#!/bin/sh -x

and capture both stdout *and* stderr, something like...

1,6,11,16,21,26,31,36,41,46,51,56 * * * * fully-qualified-script-path >/var/log/mystdout...
32,104
Posted By porter
Do you know how to add a crontab entry? As...
Do you know how to add a crontab entry?

As this needs to be run by root, do the following as root....

1. in some temporarty directory...

2. crontab -l >crontab

3. edit the crontab file
...
32,104
Posted By porter
I thought you would have something like.... ...
I thought you would have something like....

1 * * * * /path/to/my/script/to/do/this/pinging.sh >/var/log/lastpingthing.log
32,104
Posted By porter
1. You normally have to fully path the script in...
1. You normally have to fully path the script in the crontab file.

2. you may need to fully path the shutdown program in the script as well.
32,104
Posted By porter
It should be just pinging it three times in the...
It should be just pinging it three times in the "for" loop, not continually.
32,104
Posted By porter
Which one are you running? Post the output...
Which one are you running?

Post the output of the script...

And post your actual script.

What does "/usr/sbin/ping ip-address" do, does it just say "host is alive" or does it run forever?
70,540
Posted By porter
Use the Cygwin setup.exe to select the programs...
Use the Cygwin setup.exe to select the programs you want installed.
32,104
Posted By porter
#!/bin/sh DOSHUTDOWN=/usr/bin/true for...
#!/bin/sh

DOSHUTDOWN=/usr/bin/true

for d in a b c
do
if /usr/sbin/ping cable-ip
then
DOSHUTDOWN=/usr/bin/false
break
fi
done

if $DOSHUTDOWN
then
...
32,104
Posted By porter
Yes, I do encourage you to understand the script...
Yes, I do encourage you to understand the script line by line. Of course you may have the IP address in /etc/hosts to assist, rather than coding into the script. So if the address changes you only...
Forum: HP-UX 01-07-2008
21,785
Posted By porter
"OpenSSH" != "OpenSSL".
"OpenSSH" != "OpenSSL".
12,667
Posted By porter
"cvs export .." should read out of a CVS...
"cvs export .." should read out of a CVS repository without the CVS directory entries.
32,104
Posted By porter
I suggest you test crontab under a normal user...
I suggest you test crontab under a normal user account to get a feel for it.
32,104
Posted By porter
Yes, you don't have the outer while loop with the...
Yes, you don't have the outer while loop with the sleep.
32,104
Posted By porter
the sleep 300 is part of a loop to sleep for five...
the sleep 300 is part of a loop to sleep for five minutes each loop.

However I recommend you remove the outer loop and install as a cron job.

Search this site for "crontab" for examples.

If...
32,104
Posted By porter
No, I'm just trying to alert you to an obvious...
No, I'm just trying to alert you to an obvious difference in behaviour between Solaris and other platforms.

Normal ping is continuous and emits a trace of packet echo times, Solaris just says...
32,104
Posted By porter
Give it a go.... :) Make sure you understand...
Give it a go.... :)

Make sure you understand it all before you install it, as it has to run as root to run shutdown.
Forum: HP-UX 01-07-2008
21,785
Posted By porter
Did you follow the installation instructions?
Did you follow the installation instructions?
32,104
Posted By porter
#!/bin/sh while true do sleep 300 ...
#!/bin/sh

while true
do
sleep 300
REBOOT=/usr/bin/true
for d in a b c
do
if /usr/sbin/ping cable-ip
then
...
Forum: HP-UX 01-07-2008
21,785
Posted By porter
I run OpenSSH on both my HPUX 11.11 boxes but I...
I run OpenSSH on both my HPUX 11.11 boxes but I can remember if I had to explicitly install them.

Did you install any GOLD update pack?
2,320
Posted By porter
Alternatively "source" the script by running with...
Alternatively "source" the script by running with the "." operator, eg period-space-scriptpath

. scriptpath
7,506
Posted By porter
It depends if you have written them in a portable...
It depends if you have written them in a portable manner.

It is far better to maintain one set of code that compiles in multiple environments than maintain different sets of code that may end up...
Forum: AIX 01-07-2008
13,500
Posted By porter
Do you not have a CD-ROM drive?
Do you not have a CD-ROM drive?
Showing results 1 to 25 of 500

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