Unix/Linux Go Back    

Showing results 1 to 25 of 500
Search took 0.09 seconds.
Search: Posts Made By: porter
Forum: UNIX for Advanced & Expert Users Linux 01-07-2008
Replies: 6
Views: 8,871
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 Linux 01-07-2008
Replies: 2
Views: 8,872
Posted By porter
Can you put Samba on the Solaris box?

Can you put Samba on the Solaris box?
Forum: Shell Programming and Scripting Linux 01-07-2008
Replies: 5
Views: 2,961
Posted By porter
or this.. while read line do ... ...

or this..

while read line
do
...
done <data
Forum: Shell Programming and Scripting Linux 01-07-2008
Replies: 39
Views: 18,293
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...
Forum: Shell Programming and Scripting Linux 01-07-2008
Replies: 39
Views: 18,293
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
Forum: Shell Programming and Scripting Linux 01-07-2008
Replies: 39
Views: 18,293
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
Forum: Shell Programming and Scripting Linux 01-07-2008
Replies: 39
Views: 18,293
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.
Forum: Shell Programming and Scripting Linux 01-07-2008
Replies: 39
Views: 18,293
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.
Forum: Shell Programming and Scripting Linux 01-07-2008
Replies: 39
Views: 18,293
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?
Forum: UNIX for Dummies Questions & Answers Linux 01-07-2008
Replies: 1
Views: 66,383
Posted By porter
Use the Cygwin setup.exe to select the programs...

Use the Cygwin setup.exe to select the programs you want installed.
Forum: Shell Programming and Scripting Linux 01-07-2008
Replies: 39
Views: 18,293
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
Forum: Shell Programming and Scripting Linux 01-07-2008
Replies: 39
Views: 18,293
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 Linux 01-07-2008
Replies: 8
Views: 15,273
Posted By porter
"OpenSSH" != "OpenSSL".

"OpenSSH" != "OpenSSL".
Forum: Shell Programming and Scripting Linux 01-07-2008
Replies: 3
Views: 10,280
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.
Forum: Shell Programming and Scripting Linux 01-07-2008
Replies: 39
Views: 18,293
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.
Forum: Shell Programming and Scripting Linux 01-07-2008
Replies: 39
Views: 18,293
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.
Forum: Shell Programming and Scripting Linux 01-07-2008
Replies: 39
Views: 18,293
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...
Forum: Shell Programming and Scripting Linux 01-07-2008
Replies: 39
Views: 18,293
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...
Forum: Shell Programming and Scripting Linux 01-07-2008
Replies: 39
Views: 18,293
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 Linux 01-07-2008
Replies: 8
Views: 15,273
Posted By porter
Did you follow the installation instructions?

Did you follow the installation instructions?
Forum: Shell Programming and Scripting Linux 01-07-2008
Replies: 39
Views: 18,293
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 Linux 01-07-2008
Replies: 8
Views: 15,273
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?
Forum: Shell Programming and Scripting Linux 01-07-2008
Replies: 3
Views: 1,259
Posted By porter
Alternatively "source" the script by running with...

Alternatively "source" the script by running with the "." operator, eg period-space-scriptpath

. scriptpath
Forum: UNIX for Advanced & Expert Users Linux 01-07-2008
Replies: 1
Views: 5,147
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 Linux 01-07-2008
Replies: 15
Views: 10,741
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 12:52 PM.