(standard_in) 1: parse error


Login or Register to Reply

 
Thread Tools Search this Thread
# 1  
Old 07-12-2010
(standard_in) 1: parse error

Hi all,

Could someone please to tell me when do we exactly get the below error and how to get rid of it.

I am unable to trace the error.

(standard_in) 1: parse error

Thanks in advance !!
# 2  
Old 07-12-2010
Hi.

It's the kind of error that bc gives you if, for example, you have an undeclared variable, or passing something to it that it doesn't understand:

Code:
$ echo "scale=1; $X * 3" | bc
(standard_in) 1: parse error

$ echo "scale=3; x 3" | bc
(standard_in) 1: parse error

# 3  
Old 07-12-2010
Thanks Scottn.I will replace all the commands which has bc and try.

Thanks again
# 4  
Old 07-14-2010
Hi

when i use expr command instead of bc, i get the below error.

expr: non-numeric argument

Please help Smilie

Thanks !!
# 5  
Old 07-14-2010
Isn't that the same question as here?
Login or Register to Reply

|
Thread Tools Search this Thread
Search this Thread:
Advanced Search

More UNIX and Linux Forum Topics You Might Find Helpful
(standard_in)1:syntax error using bc with Cron SysAdminRialto Shell Programming and Scripting 7 07-23-2018 11:33 PM
Standard_in error Mathew_paul Shell Programming and Scripting 2 07-13-2017 04:41 PM
Parse html cmccabe Shell Programming and Scripting 5 02-08-2015 02:24 PM
Parse cmccabe Shell Programming and Scripting 6 10-24-2014 10:41 AM
(standard_in) 1: parse error jamie_123 Shell Programming and Scripting 5 02-18-2014 03:55 AM
intermittent bc parse error reid Shell Programming and Scripting 3 08-22-2011 07:53 PM
bc giving error: (standard_in) 2: parse error manishma71 Shell Programming and Scripting 9 08-04-2010 05:21 AM
Perl parse error nmattam Shell Programming and Scripting 2 07-07-2010 12:40 AM
Parse string ktm Shell Programming and Scripting 12 09-06-2009 05:10 PM
To parse the line julie_s Shell Programming and Scripting 2 08-27-2009 05:33 AM
how to parse this string hcliff Shell Programming and Scripting 13 04-02-2008 04:43 AM
Parse mirusnet Shell Programming and Scripting 1 01-23-2008 05:49 PM
Parse error ravi raj kumar UNIX for Advanced & Expert Users 1 06-29-2007 09:36 AM
How to parse.. natter Shell Programming and Scripting 8 05-22-2003 09:11 AM
Parse nguda Shell Programming and Scripting 7 05-16-2002 09:10 AM