Search Results

Search: Posts Made By: shellscripter
5,114
Posted By shellscripter
expect_out buffer no such variable running script background
I am trying to use send and receive using expect. the expect_out(buffer) is working fine while it is running it as foreground. But the same script when it is ran as background, the expect_out(buffer)...
12,537
Posted By shellscripter
compare two files and to remove the matching lines on both the files
I have two files and need to compare the two files and to remove the matching lines from both the files
31,220
Posted By shellscripter
Hi All, Thanks for your quick response which...
Hi All,

Thanks for your quick response which helps me a lot. I have tried using BASH shell

if [[ "$HFR_MAIL" == "NO" && "$PRP_MAIL" == "NO" && "$MC_MAIL" == "NO" ]]; then

It worked fine.
...
31,220
Posted By shellscripter
syntax error in shell test: unknown operator
Hi All,

can some one figure out the syntax issue here. How to overcome this?

#!/bin/sh

$ HFR_MAIL=NO
$ PRP_MAIL=NO
$ MC_MAIL=NO
$ if [ [ "$HFR_MAIL" = "NO" ] && [ "$PRP_MAIL" = "NO"...
23,434
Posted By shellscripter
Thanks wireonfire for the explanation. :-) ...
Thanks wireonfire for the explanation. :-)

Regards,
Parkkavan
23,434
Posted By shellscripter
Thanks Franklin. It works fine.. Can you...
Thanks Franklin. It works fine..

Can you tellme "2" mean in 2>/dev/null.

Thanks,
Parkkavan
23,434
Posted By shellscripter
How to avoid grep warning messages
Hi All,
When i try to grep for a patern in an directory, I am getting warning like "No such file or directory". Anyway script is working as expected. but i need to avoid this warning message....
25,327
Posted By shellscripter
Hi Lalit, Please go through unix tutorial...
Hi Lalit,

Please go through unix tutorial and try on your own. This is not a much big deal. Simple if else statement can do it.

1. Are you going to run as a cron job?
2. Expain whats your...
25,327
Posted By shellscripter
##################### #!/bin/sh find...
#####################
#!/bin/sh

find <source dir name> -mtime +365 | mv *.* <destination directory>
#########################

save this file as move.sh and try a run... Hope you got

...
5,601
Posted By shellscripter
script to monitor files in a directory and sending the alert
Hi All,

We are having important config files in an directory which was accessable by all
/auto/config/Testbed/>ls
config1.intial
config2.intial
config3.inital

often we find that some of...
6,199
Posted By shellscripter
How to decrease the font size in Mailx
Hi all,

I am using

echo "$EMAILMESSAGE" | mailx -s "$SUBJECT" -b $CC "$TO"

I am receiving the mail but seems to big in font size. Is there any option mailx to decrease the size of the...
3,553
Posted By shellscripter
Hi era, Thanks for your quick response....
Hi era,

Thanks for your quick response. Please have a look into the modified requirement and let me know ur inputs.
3,553
Posted By shellscripter
Thanks zaxxon for your response. I have slighty...
Thanks zaxxon for your response. I have slighty changed my erquirement

start testcase: config loading
......
error XXXX
.....
end testcase: config loading, result failed
start testcase: ping...
3,553
Posted By shellscripter
Parsing out the logs and generating report
My file will contain following(log.txt):

start testcase: config loading
......
error XXXX
.....
end testcase: config loading, result failed
start testcase: ping check
.....
error ZZZZZ...
20,536
Posted By shellscripter
Thanks era and stanleypane. Its working fine.
Thanks era and stanleypane. Its working fine.
20,536
Posted By shellscripter
Thanks for all the response. I will check the...
Thanks for all the response. I will check the above commands and update the thread soon.
20,536
Posted By shellscripter
remove first few words from a line
Hi All,

Sample:

4051 Oct 4 10:03:36 AM 2008: TEST: end of testcase Checking Interface after reload, result fail

I need to remove first 10 words of the above line and output should be...
Showing results 1 to 17 of 17

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