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.
Reply
 
Thread Tools Display Modes
  #11  
Old 21st November 2006, 19:08
bpmee bpmee is offline
Member
 
Join Date: Aug 2006
Posts: 86
Thanks: 3
Thanked 6 Times in 5 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
  #12  
Old 22nd November 2006, 16:39
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,722 Times in 2,563 Posts
 
Default

Quote:
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.
__________________
Falko
--
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
Reply

Bookmarks

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 17:58
Strange email problem for one of my domains... any help appreciated paulrobert_a Installation/Configuration 5 9th August 2010 14:15
sending e-mail using mail() function linuxuser1 HOWTO-Related Questions 38 21st April 2009 12:20
problem with load-balanced mysql cluster MvdB HOWTO-Related Questions 4 16th October 2006 11:15
Postfix+MySQL Problem jasutton Installation/Configuration 1 15th June 2006 16:06


All times are GMT +2. The time now is 22:47.


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