<?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: no file found running batch file in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/no-file-found-running-batch-file/m-p/4469167#M360908</link>
    <description>&lt;!--!*#--&gt;&amp;gt; 2) You must use an absolute path: $PWD/adddb.bat&lt;BR /&gt;&amp;gt; 3) You must use ./adddb.bat&lt;BR /&gt;&lt;BR /&gt;Actually, I believe:&lt;BR /&gt;&lt;BR /&gt;2) You must specify a path to the script.&lt;BR /&gt;This can be an absolute path, like&lt;BR /&gt;      /disk1/eric/adddb.bat&lt;BR /&gt;or a relative path, like:&lt;BR /&gt;      ./adddb.bat&lt;BR /&gt;or:&lt;BR /&gt;      ../eric/adddb.bat&lt;BR /&gt;&lt;BR /&gt;(But something with a "/" in it.)&lt;BR /&gt;&lt;BR /&gt;3) There is no "3)".&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Note that when you show your actual commands&lt;BR /&gt;and error messages, instead of vague&lt;BR /&gt;descriptions, it's easy to spot the problem.</description>
    <pubDate>Fri, 31 Jul 2009 03:16:31 GMT</pubDate>
    <dc:creator>Steven Schweda</dc:creator>
    <dc:date>2009-07-31T03:16:31Z</dc:date>
    <item>
      <title>no file found running batch file</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/no-file-found-running-batch-file/m-p/4469159#M360900</link>
      <description>hi been running batch file to copy file, but it prompts "no file found"&lt;BR /&gt;&lt;BR /&gt;here the batch:&lt;BR /&gt;adddb.bat -  cp /recital/userx.db /recital/users.db&lt;BR /&gt;&lt;BR /&gt;adderic.bat  -  cp /recital/run/xusers.db /recital/run/users.db&lt;BR /&gt;&lt;BR /&gt;thanks in advance</description>
      <pubDate>Wed, 29 Jul 2009 13:44:53 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/no-file-found-running-batch-file/m-p/4469159#M360900</guid>
      <dc:creator>gobi_1</dc:creator>
      <dc:date>2009-07-29T13:44:53Z</dc:date>
    </item>
    <item>
      <title>Re: no file found running batch file</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/no-file-found-running-batch-file/m-p/4469160#M360901</link>
      <description>Hi Gobi,&lt;BR /&gt;&lt;BR /&gt;Issue is not clear on your post. Could you elaborate the issue details?&lt;BR /&gt;&lt;BR /&gt;Are you running any script to copy some files? if so provide the script contents?&lt;BR /&gt;&lt;BR /&gt;Are you running any cron job?&lt;BR /&gt;&lt;BR /&gt;I have heard batch files only on windows..</description>
      <pubDate>Wed, 29 Jul 2009 13:55:16 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/no-file-found-running-batch-file/m-p/4469160#M360901</guid>
      <dc:creator>Ganesan R</dc:creator>
      <dc:date>2009-07-29T13:55:16Z</dc:date>
    </item>
    <item>
      <title>Re: no file found running batch file</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/no-file-found-running-batch-file/m-p/4469161#M360902</link>
      <description>"here the batch:&lt;BR /&gt;adddb.bat - cp /recital/userx.db /recital/users.db&lt;BR /&gt;&lt;BR /&gt;adderic.bat - cp /recital/run/xusers.db /recital/run/users.db"&lt;BR /&gt;&lt;BR /&gt;I take it the above are the names of 2 shell scripts and there contents.  &lt;BR /&gt;&lt;BR /&gt;the questions are:&lt;BR /&gt;&lt;BR /&gt;1)which one are you actually running (or are you running a 3rd that is supposed to run the two above)?&lt;BR /&gt;&lt;BR /&gt;2) how are you running whatever it is you are actually running? &lt;BR /&gt;&lt;BR /&gt;-and-&lt;BR /&gt;&lt;BR /&gt;3) what exactly does running it produce?</description>
      <pubDate>Wed, 29 Jul 2009 15:09:49 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/no-file-found-running-batch-file/m-p/4469161#M360902</guid>
      <dc:creator>OldSchool</dc:creator>
      <dc:date>2009-07-29T15:09:49Z</dc:date>
    </item>
    <item>
      <title>Re: no file found running batch file</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/no-file-found-running-batch-file/m-p/4469162#M360903</link>
      <description>i have no cron jobs, i run this both for non root user to copy some files.&lt;BR /&gt;</description>
      <pubDate>Thu, 30 Jul 2009 05:33:19 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/no-file-found-running-batch-file/m-p/4469162#M360903</guid>
      <dc:creator>gobi_1</dc:creator>
      <dc:date>2009-07-30T05:33:19Z</dc:date>
    </item>
    <item>
      <title>Re: no file found running batch file</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/no-file-found-running-batch-file/m-p/4469163#M360904</link>
      <description>Hi Gopi,&lt;BR /&gt;&lt;BR /&gt;adddb.bat - is this a batch file you are running?&lt;BR /&gt;&lt;BR /&gt;and&lt;BR /&gt;&lt;BR /&gt;cp /recital/userx.db /recital/users.db &lt;BR /&gt;&lt;BR /&gt;is the batch file adddb.bat file contains only the above command?&lt;BR /&gt;&lt;BR /&gt;Could you give us the batch file name you are running and contents of the batch file?</description>
      <pubDate>Thu, 30 Jul 2009 06:26:25 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/no-file-found-running-batch-file/m-p/4469163#M360904</guid>
      <dc:creator>Ganesan R</dc:creator>
      <dc:date>2009-07-30T06:26:25Z</dc:date>
    </item>
    <item>
      <title>Re: no file found running batch file</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/no-file-found-running-batch-file/m-p/4469164#M360905</link>
      <description>&lt;!--!*#--&gt;On last try then ----&lt;BR /&gt;&lt;BR /&gt;SO....&lt;BR /&gt;&lt;BR /&gt;some file named "adddb.bat" contains the following:&lt;BR /&gt; cp /recital/userx.db /recital/users.db&lt;BR /&gt;&lt;BR /&gt;---AND ---&lt;BR /&gt;&lt;BR /&gt;some file named "adderic.bat" contains the following:&lt;BR /&gt; cp /recital/run/xusers.db /recital/run/users.db&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;IS THE ABOVE CORRECT????  A simply yes or no will suffice.&lt;BR /&gt;&lt;BR /&gt;IF IT IS CORRECT, then:&lt;BR /&gt;1) at the command line, you type EXACTLY WHAT?  &lt;BR /&gt;2) what EXACTLY, is the error message. not just FILE NOT FOUND.&lt;BR /&gt;&lt;BR /&gt;I suspect its as simple as an issue with the "bat" files not in the PATH, but you insist on ignoring questions.&lt;BR /&gt;&lt;BR /&gt;HINTS:  &lt;BR /&gt;I) if it says "adddb.bat" or "adderic.bat" NOT FOUND, then the location of the bat file(s) aren't in your current path and you need to provide either:&lt;BR /&gt;a) the full path to it, or, if &lt;BR /&gt;b) if they reside in the current working directory, source them, as in &lt;BR /&gt;  . ./adderic.bat    (that's dot space dot slash)&lt;BR /&gt;c) modify the PATH to include the directory where they are located (but DON'T set it to ".")&lt;BR /&gt;&lt;BR /&gt;II) If it says something like "cp ....FILE NOT" found, then file named in the script is not found where you think it should be.</description>
      <pubDate>Thu, 30 Jul 2009 19:52:49 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/no-file-found-running-batch-file/m-p/4469164#M360905</guid>
      <dc:creator>OldSchool</dc:creator>
      <dc:date>2009-07-30T19:52:49Z</dc:date>
    </item>
    <item>
      <title>Re: no file found running batch file</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/no-file-found-running-batch-file/m-p/4469165#M360906</link>
      <description>here's the exact error message.  users must go first to this directory and run the batch.  I tried using root account but error still occur&lt;BR /&gt;&lt;BR /&gt;root@SGCJMI[/disk1/eric]adddb.bat&lt;BR /&gt;sh: adddb.bat:  not found.&lt;BR /&gt;root@SGCJMI[/disk1/eric]adderic.bat&lt;BR /&gt;sh: adderic.bat:  not found.&lt;BR /&gt;</description>
      <pubDate>Fri, 31 Jul 2009 02:47:46 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/no-file-found-running-batch-file/m-p/4469165#M360906</guid>
      <dc:creator>gobi_1</dc:creator>
      <dc:date>2009-07-31T02:47:46Z</dc:date>
    </item>
    <item>
      <title>Re: no file found running batch file</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/no-file-found-running-batch-file/m-p/4469166#M360907</link>
      <description>&amp;gt;users must go first to this directory and run the batch.&lt;BR /&gt;[/disk1/eric]adddb.bat&lt;BR /&gt;sh: adddb.bat: not found.&lt;BR /&gt;&lt;BR /&gt;To execute a script, As OldSchool said, either:&lt;BR /&gt;1) This directory must be in $PATH.&lt;BR /&gt;2) You must use an absolute path: $PWD/adddb.bat&lt;BR /&gt;3) You must use ./adddb.bat</description>
      <pubDate>Fri, 31 Jul 2009 02:54:01 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/no-file-found-running-batch-file/m-p/4469166#M360907</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2009-07-31T02:54:01Z</dc:date>
    </item>
    <item>
      <title>Re: no file found running batch file</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/no-file-found-running-batch-file/m-p/4469167#M360908</link>
      <description>&lt;!--!*#--&gt;&amp;gt; 2) You must use an absolute path: $PWD/adddb.bat&lt;BR /&gt;&amp;gt; 3) You must use ./adddb.bat&lt;BR /&gt;&lt;BR /&gt;Actually, I believe:&lt;BR /&gt;&lt;BR /&gt;2) You must specify a path to the script.&lt;BR /&gt;This can be an absolute path, like&lt;BR /&gt;      /disk1/eric/adddb.bat&lt;BR /&gt;or a relative path, like:&lt;BR /&gt;      ./adddb.bat&lt;BR /&gt;or:&lt;BR /&gt;      ../eric/adddb.bat&lt;BR /&gt;&lt;BR /&gt;(But something with a "/" in it.)&lt;BR /&gt;&lt;BR /&gt;3) There is no "3)".&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Note that when you show your actual commands&lt;BR /&gt;and error messages, instead of vague&lt;BR /&gt;descriptions, it's easy to spot the problem.</description>
      <pubDate>Fri, 31 Jul 2009 03:16:31 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/no-file-found-running-batch-file/m-p/4469167#M360908</guid>
      <dc:creator>Steven Schweda</dc:creator>
      <dc:date>2009-07-31T03:16:31Z</dc:date>
    </item>
    <item>
      <title>Re: no file found running batch file</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/no-file-found-running-batch-file/m-p/4469168#M360909</link>
      <description>&amp;gt;Steven: 2) You must specify a path to the script.  3) There is no "3)".&lt;BR /&gt;&lt;BR /&gt;I was making it very simple and specific for a script in the current directory.</description>
      <pubDate>Fri, 31 Jul 2009 03:38:50 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/no-file-found-running-batch-file/m-p/4469168#M360909</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2009-07-31T03:38:50Z</dc:date>
    </item>
    <item>
      <title>Re: no file found running batch file</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/no-file-found-running-batch-file/m-p/4469169#M360910</link>
      <description>HI,&lt;BR /&gt;root@SGCJMI[/disk1/eric]adddb.bat&lt;BR /&gt;sh: adddb.bat: not found.&lt;BR /&gt;root@SGCJMI[/disk1/eric]adderic.bat&lt;BR /&gt;sh: adderic.bat: not found.&lt;BR /&gt;&lt;BR /&gt;As all said you have to give full path of the batch file. &lt;BR /&gt;check your file is physicly there or not &lt;BR /&gt;if yes then check for the execute permission.&lt;BR /&gt;if execute permission is there then you can run your batch program just give the batch name at the command prompt.&lt;BR /&gt;or else you have to run like this&lt;BR /&gt;&lt;BR /&gt;root@SGCJMI[/disk1/eric]sh ./adddb.bat&lt;BR /&gt;root@SGCJMI[/disk1/eric]sh ./adderic.bat&lt;BR /&gt;&lt;BR /&gt;Suraj</description>
      <pubDate>Fri, 31 Jul 2009 03:57:47 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/no-file-found-running-batch-file/m-p/4469169#M360910</guid>
      <dc:creator>Suraj K Sankari</dc:creator>
      <dc:date>2009-07-31T03:57:47Z</dc:date>
    </item>
    <item>
      <title>Re: no file found running batch file</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/no-file-found-running-batch-file/m-p/4469170#M360911</link>
      <description>&lt;!--!*#--&gt;&amp;gt; I was making it very simple [...]&lt;BR /&gt;&lt;BR /&gt;3 is simpler than 2?&lt;BR /&gt;&lt;BR /&gt;Things should be made as simple as possible,&lt;BR /&gt;but no simpler.  Simple and False are&lt;BR /&gt;spelled differently for a reason.&lt;BR /&gt;&lt;BR /&gt;"You can't do it" is very simple, too, but&lt;BR /&gt;it's not true, either.</description>
      <pubDate>Fri, 31 Jul 2009 03:57:55 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/no-file-found-running-batch-file/m-p/4469170#M360911</guid>
      <dc:creator>Steven Schweda</dc:creator>
      <dc:date>2009-07-31T03:57:55Z</dc:date>
    </item>
    <item>
      <title>Re: no file found running batch file</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/no-file-found-running-batch-file/m-p/4469171#M360912</link>
      <description>thanks guys, run the absolute path and adjust the file permission &amp;amp; all works fine now</description>
      <pubDate>Fri, 31 Jul 2009 05:25:09 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/no-file-found-running-batch-file/m-p/4469171#M360912</guid>
      <dc:creator>gobi_1</dc:creator>
      <dc:date>2009-07-31T05:25:09Z</dc:date>
    </item>
    <item>
      <title>Re: no file found running batch file</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/no-file-found-running-batch-file/m-p/4469172#M360913</link>
      <description>&amp;gt;Steven: 3 is simpler than 2?&lt;BR /&gt;&lt;BR /&gt;Maybe, there were lots of words in your revised 2).  :-)</description>
      <pubDate>Fri, 31 Jul 2009 07:33:09 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/no-file-found-running-batch-file/m-p/4469172#M360913</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2009-07-31T07:33:09Z</dc:date>
    </item>
  </channel>
</rss>

