<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: file not found error, but the file exists.! in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/file-not-found-error-but-the-file-exists/m-p/5133663#M688554</link>
    <description>Yes Pete, we indicate the full path in the script command line in the scheduler tool (TWS). ie.  /opt/script/bin/myshell.sh&lt;BR /&gt;&lt;BR /&gt;if i do a copy paste from the line in the scheduler and add the ll command in a shell session, the file exists.&lt;BR /&gt;&lt;BR /&gt;ll /opt/script/bin/myshell.sh&lt;BR /&gt;</description>
    <pubDate>Fri, 03 Oct 2008 14:37:11 GMT</pubDate>
    <dc:creator>Marco Camacho_1</dc:creator>
    <dc:date>2008-10-03T14:37:11Z</dc:date>
    <item>
      <title>file not found error, but the file exists.!</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/file-not-found-error-but-the-file-exists/m-p/5133661#M688552</link>
      <description>Hi all.&lt;BR /&gt;when i try to run script from a scheduler tool, i receive the message "file not found" I can ensure the path and name exists and are correct. What i observe is that some directorys have different owners (user &amp;amp; group) and the script also. I assume that when you not have the appropiate permissions, you can receive a messages as "permission denied" or "cannot execute", but i can not explain my self why i receive the "file not found" message if the file exists. Appreciate your help.</description>
      <pubDate>Fri, 03 Oct 2008 14:13:48 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/file-not-found-error-but-the-file-exists/m-p/5133661#M688552</guid>
      <dc:creator>Marco Camacho_1</dc:creator>
      <dc:date>2008-10-03T14:13:48Z</dc:date>
    </item>
    <item>
      <title>Re: file not found error, but the file exists.!</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/file-not-found-error-but-the-file-exists/m-p/5133662#M688553</link>
      <description>Is the file identified by full path name in the script?  i.e. "/usr/local/bin/myfile" rather than just "myfile"?&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Pete</description>
      <pubDate>Fri, 03 Oct 2008 14:25:45 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/file-not-found-error-but-the-file-exists/m-p/5133662#M688553</guid>
      <dc:creator>Pete Randall</dc:creator>
      <dc:date>2008-10-03T14:25:45Z</dc:date>
    </item>
    <item>
      <title>Re: file not found error, but the file exists.!</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/file-not-found-error-but-the-file-exists/m-p/5133663#M688554</link>
      <description>Yes Pete, we indicate the full path in the script command line in the scheduler tool (TWS). ie.  /opt/script/bin/myshell.sh&lt;BR /&gt;&lt;BR /&gt;if i do a copy paste from the line in the scheduler and add the ll command in a shell session, the file exists.&lt;BR /&gt;&lt;BR /&gt;ll /opt/script/bin/myshell.sh&lt;BR /&gt;</description>
      <pubDate>Fri, 03 Oct 2008 14:37:11 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/file-not-found-error-but-the-file-exists/m-p/5133663#M688554</guid>
      <dc:creator>Marco Camacho_1</dc:creator>
      <dc:date>2008-10-03T14:37:11Z</dc:date>
    </item>
    <item>
      <title>Re: file not found error, but the file exists.!</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/file-not-found-error-but-the-file-exists/m-p/5133664#M688555</link>
      <description>Marco,&lt;BR /&gt;&lt;BR /&gt;I believe Pete was referring to the file names / commands within the script being run, not the path to the script in the scheduler.  &lt;BR /&gt;&lt;BR /&gt;If your using cron, be aware that the environment it provides for a user is not the same as the users login environment.  In particular, the PATH is very restricted.&lt;BR /&gt;&lt;BR /&gt;Make sure your script sets PATH as you want it, all required environment variables are set.  In addition, beware of relative path names.  Unless you "cd" somewhere first, its almost a sure bet you aren't running in the location you think you are. Providing full paths to files will also work.&lt;BR /&gt;&lt;BR /&gt;for example, if your script does:&lt;BR /&gt;&lt;BR /&gt;cp abd /a/b/c/abd&lt;BR /&gt;&lt;BR /&gt;it will fail if you're not in the correct directory it start with, so either change it to something like&lt;BR /&gt;&lt;BR /&gt;cd /filedir&lt;BR /&gt;cp abd /a/b/c/abd&lt;BR /&gt;&lt;BR /&gt;or&lt;BR /&gt;&lt;BR /&gt;cp /filedir/abd /a/b/c/adb&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 03 Oct 2008 15:07:12 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/file-not-found-error-but-the-file-exists/m-p/5133664#M688555</guid>
      <dc:creator>OldSchool</dc:creator>
      <dc:date>2008-10-03T15:07:12Z</dc:date>
    </item>
    <item>
      <title>Re: file not found error, but the file exists.!</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/file-not-found-error-but-the-file-exists/m-p/5133665#M688556</link>
      <description>hi:&lt;BR /&gt;&lt;BR /&gt;Another consideration is that the verbiage of the message may be non-standard.  If you use 'strerror()', for example, in a C program you map the errno of a failed function call to a catalog of standard strings.  An errno=2 equates to "No such file or directory".  An errno=13 is "Permission denied".&lt;BR /&gt;&lt;BR /&gt;Too, be sure that if you are 'root' and have moved into a directory that you preface relative paths with a dot, as:&lt;BR /&gt;&lt;BR /&gt;# cd /root&lt;BR /&gt;# ./myscript&lt;BR /&gt;&lt;BR /&gt;Remember, 'root' does not nor should not have a dot ('.') in its PATH.  To do so is a terrible security hole.&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...</description>
      <pubDate>Fri, 03 Oct 2008 15:38:27 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/file-not-found-error-but-the-file-exists/m-p/5133665#M688556</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2008-10-03T15:38:27Z</dc:date>
    </item>
    <item>
      <title>Re: file not found error, but the file exists.!</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/file-not-found-error-but-the-file-exists/m-p/5133666#M688557</link>
      <description>The ability to find a file depends on the directory. If the directory does not give you permission to search the directory, giving the fullpath will not help -- the file is still not found. The owner of the directory can find and open the file but permissions can restrict other users.&lt;BR /&gt; &lt;BR /&gt;Try this (not as root):&lt;BR /&gt; &lt;BR /&gt;mkdir /tmp/blh&lt;BR /&gt;touch /tmp/blh/findme&lt;BR /&gt;ll /tmp/blh/findme&lt;BR /&gt; &lt;BR /&gt;(the above ll works OK)&lt;BR /&gt; &lt;BR /&gt;chmod 700 /tmp/blh&lt;BR /&gt;chown root /tmp/blh&lt;BR /&gt;ll /tmp/blh/findme&lt;BR /&gt; &lt;BR /&gt;Now the ll fails with: &lt;BR /&gt; &lt;BR /&gt;/tmp/blh/findme not found&lt;BR /&gt; &lt;BR /&gt;Login as root and you can once again see the file. The 700 permissions restrict your ability to search the directory. All standard UNIX directory permission stuff.</description>
      <pubDate>Fri, 03 Oct 2008 15:48:43 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/file-not-found-error-but-the-file-exists/m-p/5133666#M688557</guid>
      <dc:creator>Bill Hassell</dc:creator>
      <dc:date>2008-10-03T15:48:43Z</dc:date>
    </item>
    <item>
      <title>Re: file not found error, but the file exists.!</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/file-not-found-error-but-the-file-exists/m-p/5133667#M688558</link>
      <description>Thanks a lot for your kindly help, all your comments will allow me to fix the problem.&lt;BR /&gt;Marco C.&lt;BR /&gt;</description>
      <pubDate>Fri, 03 Oct 2008 16:01:13 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/file-not-found-error-but-the-file-exists/m-p/5133667#M688558</guid>
      <dc:creator>Marco Camacho_1</dc:creator>
      <dc:date>2008-10-03T16:01:13Z</dc:date>
    </item>
    <item>
      <title>Re: file not found error, but the file exists.!</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/file-not-found-error-but-the-file-exists/m-p/5133668#M688559</link>
      <description>that's nice, but *what fixed it*?</description>
      <pubDate>Fri, 03 Oct 2008 19:20:22 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/file-not-found-error-but-the-file-exists/m-p/5133668#M688559</guid>
      <dc:creator>OldSchool</dc:creator>
      <dc:date>2008-10-03T19:20:22Z</dc:date>
    </item>
  </channel>
</rss>

