Search Results

Search: Posts Made By: sQew
2,276
Posted By sQew
Thanks a lot Scrutinizer for the idea, its now...
Thanks a lot Scrutinizer for the idea, its now working. I tested by sending to my email, below is the script:


while read code client name sched time
do
#printf "$client\t $code\t $name\t...
2,276
Posted By sQew
Read Line and sent as variable for each string
Hi ,

I want to read below output, lets called it output1.txt and each string for every line will be declare as a variables.

This is the input file

196 server_a server_unix_2 FW
196...
8,631
Posted By sQew
Hi Pludi I tried to do this first, but got an...
Hi Pludi
I tried to do this first, but got an error:


bash-3.00# ./script
./script: syntax error at line 3: `errors=$' unexpected
bash-3.00# more script
#!/bin/sh

errors=$( awk '$1 ==...
8,631
Posted By sQew
Hi R0H0N, Thanks for the reply, i tried to...
Hi R0H0N,

Thanks for the reply, i tried to use your solution here but i think something is missing. On every condition i test, all email is use subject less than 10. Means that it pass the first...
8,631
Posted By sQew
Count the number or row with same value in a column
This is the source file, we called it errorlist.out

196 server_a server_unix_2 CD
196 server_b server_win_1 CD
196 server_c server_win_2 CD
196 server_bd ...
21,855
Posted By sQew
same, no output were produce
same, no output were produce
21,855
Posted By sQew
it was work perfectly outside perl if i run...
it was work perfectly outside perl if i run directly in bash
21,855
Posted By sQew
nothing was produce in /var/tmp/error.out, its a...
nothing was produce in /var/tmp/error.out, its a blank file.
21,855
Posted By sQew
Hi R0H0N, Lets just focus on this: ...
Hi R0H0N,

Lets just focus on this:

#!/usr/bin/perl
#Calling the bash script
my $cmd = "\/usr\/openv\/netbackup\/bin\/admincmd\/bperror -backstat -l -hoursago 12 |awk '{ print $19, $12, $14,...
21,855
Posted By sQew
not getting an answer yet
not getting an answer yet
21,855
Posted By sQew
Hi, sorry im not getting what you try to point to...
Hi, sorry im not getting what you try to point to me:

This is currently i use, in this case i have to call another script
`/script/bperror14 > /var/tmp/errorout`;
What i need now is, to run...
21,855
Posted By sQew
Calling bash command in perl script
Hi,

I have tried several times but failed, I need to call this script from the perl script. This one line script will be sent to /var/tmp/error

Bash command:...
8,087
Posted By sQew
wow, it works like charm: # sed 's/\.[^...
wow, it works like charm:

# sed 's/\.[^ ]*//' /tmp/testerr.out
2 aux003 error12
6 awn0117 error13
84 aux008 error14
29 aux001 error12
209 aux002 error34
21 alx0027 error12
227 dux001...
8,087
Posted By sQew
Simplify Bash Script Using "sed" Or "awk"
Input file:


2 aux003.net3.com error12
6 awn0117.net1.com error13
84 aux008 error14
29 aux001.ha.ux.isd.com error12
209 aux002.vm.ux.isd.com error34
21 alx0027.vm.net2.com error12
227...
Showing results 1 to 14 of 14

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