9 More Discussions You Might Find Interesting
help with bash script!
im am working on this script to make sure my server will stay online, so i made this script..
for myhost in "$@"
ping -c "$COUNT" "$myhost" &&return 1
if pingtest $HOSTS
#100% failed... (4 Replies)
Discussion started by: mort3924
2. UNIX for Beginners Questions & Answers
what does the below do.
echo * | xargs ls | wc –l
echo * - Output a string comprising the name of each file in the working directory, with each name separated by a space.
xargs ls - construct argument list command
wc -l - it will pipe the output to the wc command, which will... (4 Replies)
Discussion started by: houmingc
3. Shell Programming and Scripting
I am using perl to ping a list of nodes - with script below :
$p = Net::Ping->new("icmp");
print "$host is alive.\n";
print "$host is unreacheable.\n";
$p->close();... (4 Replies)
Discussion started by: tavanagh
4. Shell Programming and Scripting
I'm writing a Korn script but am having trouble because the shell interprets the asterisk in this case. Can anyone tell me if there is a way to fix this so that grep takes in STDIN without the interpretation?
line="30 09 * * 1-4 /home/user01/bin/start"
echo "$line" | grep 'start' (16 Replies)
Discussion started by: sprucio
5. Shell Programming and Scripting
I develop simple animation ping script on Solaris Platform. It is like Cisco ping.
Examples and source code are below.
bash-3.00$ gokcell 18.104.22.168 30
Sending 30 Ping Packets to 22.214.171.124
% 93.33 success... % 6.66 packet loss...... (1 Reply)
Discussion started by: gokcell
with a sar i have this result:
System configuration: lcpu=48 ent=4.00
14:06:37 %usr %sys %wio %idle physc %entc
14:06:39 26 9 3 62 1.63 40.7
14:06:41 26 9 3 63 1.58 39.4
14:06:43 ... (0 Replies)
Discussion started by: pascalbout
7. UNIX for Advanced & Expert Users
I have used SAR -b to get some Unix cache / buffer metrics and the results are confusing me a bit.
The pread/s & pwrit/s are showing 0. However the lread/s and lwrit/s are showing figures. I note also that the bread/s and bwrit/s are showing figures. I believe that pread/s and pwrit/s is not... (3 Replies)
Discussion started by: jimthompson
8. UNIX for Dummies Questions & Answers
do someone have detailed information how to interpret the uptime command or rather which values can be called normal?
(i know what the information means, but i have no idea if these values are ok or to high:
3:02pm an 13:53, 2 Benutzer, Durchschnittslast: 10,06, 12,05, 13,00)
... (5 Replies)
Discussion started by: odin1999
9. UNIX for Dummies Questions & Answers
I executed the following command in the korn shell:
$ variable1="qwerty" ls | sort
and the shell executed the 'ls | sort' command.
I would have expected an error message from the shell, but instead of that the shell ran the 'ls | sort' command and didn't realize the variable assignement. ... (1 Reply)
Discussion started by: PhilippeCrokaer