Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > Linux Forums > Server Operation

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Thread Tools Display Modes
Old 21st November 2006, 20:08
bpmee bpmee is offline
Join Date: Aug 2006
Posts: 86
Thanks: 3
Thanked 7 Times in 6 Posts
Thumbs up Thanks It Worked!

Hi Falko,

Thanks, that additional syntax worked!

Can you explain what it does? It looks like it is calling commands from different /usr directories...

PS, I really appreciate the quality of assistance on this forum so I signed up for 6 months membership!
Reply With Quote
Sponsored Links
Old 22nd November 2006, 17:39
falko falko is offline
Super Moderator
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,752 Times in 2,582 Posts

Originally Posted by bpmee
Can you explain what it does? It looks like it is calling commands from different /usr directories...
#!/bin/bash makes that the commands in the script are executed by the /bin/bash shell (otherwise the system doesn't know what to do with the commands).
And PATH sets the directories where the script searches for commands that don't have the full path in the script. For example, if the full path for the find tool is /usr/bin/find, and you only specify find in the script, the script doesn't find find if you don't specify /usr/bin in the PATH variable.
If you use /usr/bin/find instead of just find in the script, then you don't need a PATH variable.
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote


Thread Tools
Display Modes

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

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
postfix problems with smtp linkdeb Server Operation 13 15th March 2014 18:58
Strange email problem for one of my domains... any help appreciated paulrobert_a Installation/Configuration 5 9th August 2010 15:15
sending e-mail using mail() function linuxuser1 HOWTO-Related Questions 38 21st April 2009 13:20
problem with load-balanced mysql cluster MvdB HOWTO-Related Questions 4 16th October 2006 12:15
Postfix+MySQL Problem jasutton Installation/Configuration 1 15th June 2006 17:06

All times are GMT +2. The time now is 19:52.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.