Search Results

Search: Posts Made By: porter
9,217
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
8,993
Posted By porter
Can you put Samba on the Solaris box?
Can you put Samba on the Solaris box?
3,072
Posted By porter
or this.. while read line do ... ...
or this..

while read line
do
...
done <data
19,505
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...
19,505
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
...
19,505
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
19,505
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.
19,505
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.
19,505
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?
67,107
Posted By porter
Use the Cygwin setup.exe to select the programs...
Use the Cygwin setup.exe to select the programs you want installed.
19,505
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
...
19,505
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
16,259
Posted By porter
"OpenSSH" != "OpenSSL".
"OpenSSH" != "OpenSSL".
10,566
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.
19,505
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.
19,505
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.
19,505
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...
19,505
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...
19,505
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
16,259
Posted By porter
Did you follow the installation instructions?
Did you follow the installation instructions?
19,505
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
16,259
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?
1,362
Posted By porter
Alternatively "source" the script by running with...
Alternatively "source" the script by running with the "." operator, eg period-space-scriptpath

. scriptpath
5,457
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
11,235
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

 

Featured Tech Videos

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