Search Results

Search: Posts Made By: vai_sh
2,156
Posted By Don Cragun
When I run the command: /path/to/utility/ABC )...
When I run the command:
/path/to/utility/ABC ) >>/tmp/output
I get a syntax error at the ). What shell are you using that allows you to run that command?

What OS are you using?

If the...
2,156
Posted By Don Cragun
This is a very common problem that has been...
This is a very common problem that has been answered many times before. Start with this FAQ on cron and crontab (https://www.unix.com/answers-to-frequently-asked-questions/13527-cron-crontab.html)...
Forum: HP-UX 03-09-2014
4,380
Posted By Scrutinizer
A better approach would be to use a while read...
A better approach would be to use a while read loop instead:
while read queue size
do
...
done < $configfile

Instead of
for queue in `cat ${configfile}|cut -d ' ' -f1`
do
...
...
Forum: HP-UX 03-08-2014
4,380
Posted By MadeInGermany
Line 24 has an unquoted argument for grep that...
Line 24 has an unquoted argument for grep that does an unwanted match against the current directory (and eventual replacement).
Please change it to this:

...
x=`grep -c "$queue"...
Forum: HP-UX 03-08-2014
4,380
Posted By MadeInGermany
Hmm, some UUOC but cannot see a syntax error. ...
Hmm, some UUOC but cannot see a syntax error.
Even not in line 48.
Were there some special characters?
Perhaps they were removed when you copied to this Wiki page?
Can you copy back to...
Forum: HP-UX 03-08-2014
4,380
Posted By Scrutinizer
Yes that would be required, or at least the...
Yes that would be required, or at least the relevant section, anonymized if need be, and used with [code] tags.
Forum: HP-UX 03-08-2014
4,380
Posted By ahamed101
The grep command is getting 2 values for...
The grep command is getting 2 values for tellabs7100

0 for tellabs7100
30 for tellabs7100N

and that is why the value 0^J30 is seen, ^J is actually unix line feed.

Since grep-ing for...
Forum: HP-UX 03-08-2014
4,380
Posted By ahamed101
Please correct the code tags, it is difficult to...
Please correct the code tags, it is difficult to read.
Also, paste the output of sh -x yourscript
Showing results 1 to 8 of 8

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