

Bash find file path full#
It helps to determine the full path of a file or directory within the file system.

> If neither the –lsbsysinit option nor the -regex option is given then the names must consist entirely of upper and lower case letters, digits, underscores, and hyphens. This is actually not a crontab behavior it's the behavior of run-parts which is what executes the scripts in /etc/cron.hourly/, /etc/cron.daily/, and so on: ****ln -s /root/backup.sh /etc/cron.daily/backup**** and it will be run. It's just one of those quirks that you have to file away in the back of your head. dpkg-dist, or editor backup files ending in ~). The reason is that there may be files in those directories that should not be executed (e.g., those ending in. "dos2unix" will convert it to Unix format.ĭescription This is actually not a crontab behavior it's the behavior of ~~()~~() which is what executes the scripts in /etc/cron.hourly/, /etc/cron.daily/, and so on: ' (No such file or directory)w//public_html/iptablesxyz/iptableDatabaseBuild.php Even using the file command it comes back with the following error (exact quote): "dos2unix" will convert it to Unix format. So the bash script is trying to open ….Build.php^M (control-M at the end) which, of course, doesn't exist. This likely means your bash script is in DOS format and has a CR-LF line ending.

Note the error message has overwritten the first part of the filename. > ****' (No such file or directory)w//public_html/iptablesxyz/iptableDatabaseBuild.php**** If it's really bash saying that it can't find the file, I assume it would be php that can't be found (different PATH?)?ĭescription It's not php that it can't find. Must be something basic I'm missing here? However bash says that it can't find the file.įrom the command line this command works:įrom my bash script that same command does not work, it says it can't find the file. I have a bash script that wants to run a php script like this: If it's really bash saying that it can't find the file, I assume it would be php that can't be found (different PATH?)? > Must be something basic I'm missing here?Ĭan you clarify what it is that isn't found specifically? (Maybe paste the actual output? > From my bash script that same command does not work, it says it can't find the file. > From the command line this command works: > However bash says that it can't find the file. Description I have a bash script that wants to run a php script like this:
