- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- Re: problem in running a shell script
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-20-2003 02:54 AM
тАО06-20-2003 02:54 AM
One last question for the day. Why is it when ever I download a .tar.gz file then extract it, I have problems in running the shell script.
I have the following error:
[root@TSHDSFW yahoopops-0.4.5]# pwd
/home/downloads/Yahoopops/yahoopops-0.4.5
[root@TSHDSFW yahoopops-0.4.5]# ls
common docs README src ypcompile ypcompilelinux ypinstalllinux
[root@TSHDSFW yahoopops-0.4.5]# ypcompile
-bash: ypcompile: command not found
[root@TSHDSFW yahoopops-0.4.5]#
attached is the shell script
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-20-2003 02:59 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-20-2003 03:05 AM
тАО06-20-2003 03:05 AM
Re: problem in running a shell script
./ypcompile
You have to add ./ when script is not an internal command.
Good night !
J
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-20-2003 03:05 AM
тАО06-20-2003 03:05 AM
Re: problem in running a shell script
one thing I learned in Linux that Microsoft ignores.
"Little things matter in Linux even if its just a dot a slash or a capital letter"
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-20-2003 03:05 AM
тАО06-20-2003 03:05 AM
Re: problem in running a shell script
export PATH=$PATH:.
you can add this line in /etc/bashrc (to execute it for all the users, when they log in) or in
the file .bashrc in the home directories of the users that want it.
hello
Claudio
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-20-2003 03:08 AM
тАО06-20-2003 03:08 AM
Re: problem in running a shell script
that is because your current directory(.) is not in the path.
do an echo $PATH
and u will see that ur current directory is not there.
so do an ./ypcompile.
and dont try adding current directory to your path. it is considered a bad practice.
http://theory.uwinnipeg.ca/faqs/unixfaqs.html#2.13
-balaji
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-20-2003 03:51 AM
тАО06-20-2003 03:51 AM
Re: problem in running a shell script
way to go....
and me need to be more attentive to grab those bunnies. ha ha ha
-balaji (weekend is fun....)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-20-2003 04:05 AM
тАО06-20-2003 04:05 AM
Re: problem in running a shell script
I 100% agree with the path issue, which is bad practice, and dangerous as for security reasons. That's why I didn't suggest it, but it's still possible and technically correct.
A good old ./ seems better anyway.
J
(celebrating longuest day of the year this w.e.).
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-20-2003 04:29 AM
тАО06-20-2003 04:29 AM
Re: problem in running a shell script
me need to catch up with a few friends and party. nothing specific other than that.
-balaji
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-20-2003 04:30 AM
тАО06-20-2003 04:30 AM
Re: problem in running a shell script
nevertheless this, I agree with you: it's a good idea specify explicitely that I want execute the command that resides in the current directory.
bye
Claudio