No 1 answering my question... any reason ?


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting No 1 answering my question... any reason ?
# 22  
Old 11-03-2011
Quote:
Originally Posted by nanochan1
what does this code do and where should i place it or replace it?

thanks.
Quote:
Originally Posted by nanochan1
any assistance ? I've tried numerous attempts but still can't see why anything <10 works and > doesn't
I don't see how anything could even pass the shell syntax checking stage with the statements like this: [ $col "<" 8 ].
# 23  
Old 11-03-2011
Quote:
Originally Posted by nanochan1
any assistance ? I've tried numerous attempts but still can't see why anything <10 works and > doesn't
You changed your data format again since you wrote that, so I didn't think that question still applied.

I'm with vgersh99 on this one -- the program has flaws, not just errors. Fixing it means rewriting it.
# 24  
Old 11-03-2011
Quote:
Originally Posted by vgersh99
I don't see how anything could even pass the shell syntax checking stage with the statements like this: [ $col "<" 8 ].
ok cool, care to elaborate ?

if i remove the quote my compiler wil make noise.
# 25  
Old 11-03-2011
Shell doesn't use <, =, > to compare numbers, it uses -lt, -eq, -gt.
# 26  
Old 11-03-2011
Quote:
Originally Posted by Corona688
Shell doesn't use <, =, > to compare numbers, it uses -lt, -eq, -gt.
after changing to -lt my problem did not go away either

---------- Post updated at 02:03 AM ---------- Previous update was at 02:01 AM ----------

nvm, i've found where my error is already.

thanks
# 27  
Old 11-03-2011
Quote:
Originally Posted by nanochan1
after changing to -lt my problem did not go away either
You must have an issue somewhere else before that line....
# 28  
Old 11-03-2011
Quote:
Originally Posted by nanochan1
after changing to -lt my problem did not go away either

---------- Post updated at 02:03 AM ---------- Previous update was at 02:01 AM ----------

nvm, i've found where my error is already.

thanks
Great. Now <<everyone>> answered your question, and the problem is solved.

Thread closed.
Login or Register to Ask a Question

Previous Thread | Next Thread

7 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Mgetty Not Answering when Calling from Outside

Hello All, mgetty Version: 1.1.36 OS: OpenSuSE 13.1 (armv7l) Modem: Zoom 56K USB Modem Model 3095 So I've been playing with mgetty for weeks now testing dialing into the USB modem from another PC using the same modem and connecting using minicom (*minicom ---dials to---> mgetty). I had... (3 Replies)
Discussion started by: mrm5102
3 Replies

2. Shell Programming and Scripting

Perl Debug Stepping Answering Questions

I am new to perl and want to get a little better understanding of debugging code in perl. I have a perl script that has questions to be answered like: he following PERL modules are recommended: Crypt::DES Crypt::PasswdMD5 IO::Pty Net::Write::Layer2 String::CRC32 Attempt to install... (0 Replies)
Discussion started by: metallica1973
0 Replies

3. Shell Programming and Scripting

ssh -t answering automatically to the password

hi, i'm using the folowing ssh command to list the newuser "crontab' from myuser ssh -t myuser@host1 "sudo -u newuser crontab -l" this is ok but it is asking me a password. Mot de passe de myuser: The problem is that i want to answer it automatically in a shell script with the... (22 Replies)
Discussion started by: Nicol
22 Replies

4. UNIX for Dummies Questions & Answers

help - question needs answering????

hey, have been set this question at school and cannot think for the life of me how to do this. Ive thought about setuid/setgid and things like that but cant make any snese of it. Can anyone help? question reads: You have a file which has the names, email addresses, mobile numbers and sales... (1 Reply)
Discussion started by: biffa
1 Replies

5. Shell Programming and Scripting

Perl: answering automatically to install questions

Hi everybody, I have been looking for an answer to this issue both on google and on the forum, but I couldn't find anything. please help me :eek: As part of an automated (in perl) install of Solaris 9, I would like to be able to answer automaticaly to the question the installer asks.... (2 Replies)
Discussion started by: zaap
2 Replies

6. BSD

Answering posts

Hi Guys...(if anyone is out there), do these specialist posts ever get answered and do we just have to bide our time and be patient, or whats the deal (3 Replies)
Discussion started by: Gerry405
3 Replies

7. Programming

what is the exact reason ?

please refer the following 2 statements... 1) int i=1,j; j= i++ + i++; 2) int i=1,j; j=++i + ++i; how j becomes 2 and 6 for the above 2 statements respectively ??? ( i guessed j must be 3 and 5) Somebody define the exact reason please.. :( ... (2 Replies)
Discussion started by: shamal
2 Replies
Login or Register to Ask a Question