The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
Google UNIX.COM


UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !!

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Error while running your script -- Balamv balamv Shell Programming and Scripting 1 06-06-2008 04:37 AM
error in running shell script in cron sari Shell Programming and Scripting 3 04-16-2008 01:09 AM
When running if condition, getting the following error sunitachoudhury Shell Programming and Scripting 1 04-05-2008 11:31 PM
Error when running make shashidhara_01 High Level Programming 1 02-02-2007 02:35 PM
Error in running on AIX 5.2 SMISS AIX 0 06-24-2004 08:06 AM

Closed Thread
 
Submit Tools LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 02-04-2002
Registered User
 

Join Date: Aug 2001
Location: Holland
Posts: 5
Error while running a script

Hi all,

By running a (command) script I'm getting the following
error: .: /usr/bin/test: cannot execute binary file


This is the command:

[oracle@HILinux scripts]$ . test

The script (test) is very simple

sqlplus user/password @1.sql
sqlplus user/password @2.sql

Can enyone tell me what the problem is.
Forum Sponsor
  #2 (permalink)  
Old 02-04-2002
Registered User
 

Join Date: Jan 2002
Posts: 10
Just rename the script to something else. Test does exist already.

-rwxr-xr-x 1 root root 17444 Jan 19 2001 /usr/bin/test

or start it like this :

./test
  #3 (permalink)  
Old 02-04-2002
witt
Guest
 

Posts: n/a
DanielB,

Execute your script with full path name.
Example :

/usr/local/bin/test

or

Change your directory to the script path and
execute this.
Example :

cd /usr/local/bin
./test

If you to try to execute thus : (. test)

The O.S. tries to execute the /usr/bin/test command.
And the point before a command test (in your example) without slash (/) is to load variables in the subshell.

Witt
  #4 (permalink)  
Old 02-04-2002
Registered User
 

Join Date: Jan 2002
Posts: 10
Yes, I know. It was not my question neither was the . before the command my example
  #5 (permalink)  
Old 02-04-2002
Kelam_Magnus's Avatar
Unix does a body good.
 

Join Date: Aug 2001
Location: DFW McKinney, TX,
Posts: 1,069
Could you please restate your question?

Is your question regarding the syntax of your script?
There is a file in /usr/bin called "test" that exists on most UNIX boxes?

Please clarify...



__________________
My brain is your brain
  #6 (permalink)  
Old 02-04-2002
Registered User
 

Join Date: Aug 2001
Location: Holland
Posts: 5
Hi all,

./test was a good solution. The script is running fine now.
Thank you all for reply.
Google The UNIX and Linux Forums
Closed Thread

Thread Tools
Display Modes




All times are GMT -7. The time now is 12:04 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008. All Rights Reserved.Ad Management by RedTyger Visit The Global Fact Book

Content Relevant URLs by vBSEO 3.2.0