LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices

Reply
 
LinkBack Search this Thread
Old 08-24-2010, 02:50 PM   #1
vaibhavs17
Member
 
Registered: Mar 2009
Posts: 49

Rep: Reputation: 1
run(execute) file by name on solaris


Hi Team,

two solaris machines with same versions.

I am able to execute script just by giving filename. same is not happening on other machine.
Ineed to give explicitly ./filename or . ./filename.
I could not understand why is thi difference.

I checked that there are some scripts on solaris 10 has some filename without './'. it is being executed very nicely. Only filename is given.. it is running perfectly. same is not running when i write the same script on solaris 10 but different machine. I need to write explicitly ./

Please help.
Why is the difference?

Last edited by vaibhavs17; 08-24-2010 at 03:03 PM.
 
Old 08-24-2010, 03:54 PM   #2
valen_tino
Member
 
Registered: Jan 2008
Posts: 105

Rep: Reputation: 28
Perhaps the PATH variable may have been set for your script or you may have an alias created for the script which does not require the ./
 
1 members found this post helpful.
Old 08-26-2010, 03:30 AM   #3
chrism01
Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.5
Posts: 16,086

Rep: Reputation: 1993Reputation: 1993Reputation: 1993Reputation: 1993Reputation: 1993Reputation: 1993Reputation: 1993Reputation: 1993Reputation: 1993Reputation: 1993Reputation: 1993
As above, it's almost definitely a difference in the PATH variable on each system. Just

echo $PATH

on each and compare the results.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
unable to run c program , error : cannot execute binary file soni_silver17 Linux - Software 4 03-30-2009 08:45 AM
How to execute php scripts in solaris(snv_89) wrapster Solaris / OpenSolaris 4 12-14-2008 12:35 AM
Choosing between Solaris 10 and Solaris Express to run sun xVM hypervisor crisostomo_enrico Solaris / OpenSolaris 1 09-26-2008 01:39 PM
can Solaris Express Dev. Ed. execute Linux binaries ? dragoncity Solaris / OpenSolaris 11 04-14-2008 07:52 AM
Execute .run File kazykid22 Linux - Software 13 08-07-2003 11:30 PM


All times are GMT -5. The time now is 08:19 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration