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 08:37 AM
error in running shell script in cron sari Shell Programming and Scripting 3 04-16-2008 05:09 AM
When running if condition, getting the following error sunitachoudhury Shell Programming and Scripting 1 04-06-2008 03:31 AM
Error when running make shashidhara_01 High Level Programming 1 02-02-2007 06:35 PM
Error in running on AIX 5.2 SMISS AIX 0 06-24-2004 12:06 PM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 02-04-2002
HarryTellegen HarryTellegen is offline
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.
  #2 (permalink)  
Old 02-04-2002
DanielB DanielB is offline
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
Bits: 0 [Banking]
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
DanielB DanielB is offline
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
Kelam_Magnus Kelam_Magnus is offline Forum Advisor  
Registered User
  
 

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...



  #6 (permalink)  
Old 02-05-2002
HarryTellegen HarryTellegen is offline
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.
Closed Thread

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 04:40 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0