Search Results

Search: Posts Made By: jorlando
9,537
Posted By jorlando
solved!
I changed the extraction line from

BAD=$(cat /var/www/cgi-bin/modems_failed | grep -A16 $X | grep failed | cut -d " " -f 13 | grep "[^0-9]")

to

BAD=$(cat /var/www/cgi-bin/modems_failed |...
9,537
Posted By jorlando
a little progress: the error is caused by CR/LF...
a little progress: the error is caused by CR/LF (0x0d/0x0a) characters at the end of line. the script works fine if the end of line is unix style, ending with LF only (0x0a)

I used the command...
9,537
Posted By jorlando
The lines of /var/www/cgi-bin/modems_failed are...
The lines of /var/www/cgi-bin/modems_failed are the excerpt collected by expect.

In that case, the device name is device1, so my script would select the line with failed modems Number of...
9,537
Posted By jorlando
error "integer expression expected" when selecting values
dear members,

I am having some difficulties with an automation script that I am writing.

We have equipments deployed over our network that generate status messages and I was trying an automated...
Showing results 1 to 4 of 4

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