cron Solaris 5.8
From: Chris Vidal (cvidal_at_att.com)
Date: 04/06/04
- Next message: Christopher Tidy: "Re: Apache won't start"
- Previous message: Tony Curtis: "Re: Apache won't start"
- Next in thread: Chris Vidal: "Re: cron Solaris 5.8"
- Reply: Chris Vidal: "Re: cron Solaris 5.8"
- Reply: joe durusau: "Re: cron Solaris 5.8"
- Reply: Mark Daniels: "Re: cron Solaris 5.8"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Tue, 6 Apr 2004 11:02:57 -0400
I remember reading a post on this topic in the past -- didnt save it --
This script run fine at the command line, but doesnt play nice under cron.
Can someone enlighten me, please ?
#! /bin/ksh
hnam=`hostname`
cat /opt/local/etc/hosts | sed -e '/^#/d' -e '/^$/d' | awk '{print $1"
"$2}' |
while read x y
do
res=`ping $x`
echo "$y $res"
done
Thanks
Chris
begin 666 cvidal.vcf
M0D5'24XZ5D-!4D0-"E9%4E-)3TXZ,BXQ#0I..CMC=FED86P-"D9..F-V:61A
M; T*14U!24P[4%)%1CM)3E1%4DY%5#IC=FED86Q 871T+F-O;0T*4D56.C(P
;,#0P-# V5#$U,#(U-UH-"D5.1#I60T%21 T*
`
end
- Next message: Christopher Tidy: "Re: Apache won't start"
- Previous message: Tony Curtis: "Re: Apache won't start"
- Next in thread: Chris Vidal: "Re: cron Solaris 5.8"
- Reply: Chris Vidal: "Re: cron Solaris 5.8"
- Reply: joe durusau: "Re: cron Solaris 5.8"
- Reply: Mark Daniels: "Re: cron Solaris 5.8"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|