<?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: trying to do a 'mv' command with ssh in batch in Operating System - Linux</title>
    <link>https://community.hpe.com/t5/operating-system-linux/trying-to-do-a-mv-command-with-ssh-in-batch/m-p/3676761#M102822</link>
    <description>Thanks for the quick answer but no go... it still give me the not found error</description>
    <pubDate>Tue, 22 Nov 2005 12:31:29 GMT</pubDate>
    <dc:creator>Roger Gallant</dc:creator>
    <dc:date>2005-11-22T12:31:29Z</dc:date>
    <item>
      <title>trying to do a 'mv' command with ssh in batch</title>
      <link>https://community.hpe.com/t5/operating-system-linux/trying-to-do-a-mv-command-with-ssh-in-batch/m-p/3676759#M102820</link>
      <description>I have a script that runs the following command:&lt;BR /&gt;ssh idrobmr5@dc2c8w "mv /datastore/data/obmtestbst/reports/idr/sftp/out/* /datastore/data/obmtestbst/reports/idr/sftp"&lt;BR /&gt;&lt;BR /&gt;I get the following: mv /datastore/data/obmtestbst/reports/idr/sftp/out/* /datastore/data/obmtestbst/reports/idr/sftp:  not found&lt;BR /&gt;Yet files are there.  This is run in a script within a if  then statement.  if I run the same command outside the if..then it works?&lt;BR /&gt;&lt;BR /&gt;what am I missing?</description>
      <pubDate>Tue, 22 Nov 2005 12:09:24 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/trying-to-do-a-mv-command-with-ssh-in-batch/m-p/3676759#M102820</guid>
      <dc:creator>Roger Gallant</dc:creator>
      <dc:date>2005-11-22T12:09:24Z</dc:date>
    </item>
    <item>
      <title>Re: trying to do a 'mv' command with ssh in batch</title>
      <link>https://community.hpe.com/t5/operating-system-linux/trying-to-do-a-mv-command-with-ssh-in-batch/m-p/3676760#M102821</link>
      <description>What if you give the full path to the mv command. &lt;BR /&gt;&lt;BR /&gt;ssh idrobmr5@dc2c8w "/usr/bin/mv /datastore/data/obmtestbst/reports/idr/sftp/out/* /datastore/data/obmtestbst/reports/idr/sftp"</description>
      <pubDate>Tue, 22 Nov 2005 12:20:08 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/trying-to-do-a-mv-command-with-ssh-in-batch/m-p/3676760#M102821</guid>
      <dc:creator>Patrick Wallek</dc:creator>
      <dc:date>2005-11-22T12:20:08Z</dc:date>
    </item>
    <item>
      <title>Re: trying to do a 'mv' command with ssh in batch</title>
      <link>https://community.hpe.com/t5/operating-system-linux/trying-to-do-a-mv-command-with-ssh-in-batch/m-p/3676761#M102822</link>
      <description>Thanks for the quick answer but no go... it still give me the not found error</description>
      <pubDate>Tue, 22 Nov 2005 12:31:29 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/trying-to-do-a-mv-command-with-ssh-in-batch/m-p/3676761#M102822</guid>
      <dc:creator>Roger Gallant</dc:creator>
      <dc:date>2005-11-22T12:31:29Z</dc:date>
    </item>
    <item>
      <title>Re: trying to do a 'mv' command with ssh in batch</title>
      <link>https://community.hpe.com/t5/operating-system-linux/trying-to-do-a-mv-command-with-ssh-in-batch/m-p/3676762#M102823</link>
      <description>Shalom Roger,&lt;BR /&gt;&lt;BR /&gt;. ~/.profile&lt;BR /&gt;&lt;BR /&gt;This may get enough of an environment to make this work.&lt;BR /&gt;&lt;BR /&gt;Or set the PATH variable to at least include the current location of the mv command.&lt;BR /&gt;&lt;BR /&gt;As far as I know not found means one thing. Can't find the command dude!!!!&lt;BR /&gt;&lt;BR /&gt;SEP</description>
      <pubDate>Tue, 22 Nov 2005 12:38:34 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/trying-to-do-a-mv-command-with-ssh-in-batch/m-p/3676762#M102823</guid>
      <dc:creator>Steven E. Protter</dc:creator>
      <dc:date>2005-11-22T12:38:34Z</dc:date>
    </item>
    <item>
      <title>Re: trying to do a 'mv' command with ssh in batch</title>
      <link>https://community.hpe.com/t5/operating-system-linux/trying-to-do-a-mv-command-with-ssh-in-batch/m-p/3676763#M102824</link>
      <description>&lt;BR /&gt;I have the mv dir already set up in PATH.&lt;BR /&gt;</description>
      <pubDate>Tue, 22 Nov 2005 13:45:08 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/trying-to-do-a-mv-command-with-ssh-in-batch/m-p/3676763#M102824</guid>
      <dc:creator>Roger Gallant</dc:creator>
      <dc:date>2005-11-22T13:45:08Z</dc:date>
    </item>
    <item>
      <title>Re: trying to do a 'mv' command with ssh in batch</title>
      <link>https://community.hpe.com/t5/operating-system-linux/trying-to-do-a-mv-command-with-ssh-in-batch/m-p/3676764#M102825</link>
      <description>the shell reporting "not found" seems to be pointing to "mv /from/path/* /to/path" as a single command...&lt;BR /&gt;&lt;BR /&gt;how exactly is the above command executed? can you cut/paste snippets from the script... etc?&lt;BR /&gt;&lt;BR /&gt;also, to help troubleshoot... what happens if you replace "mv" with something like an "ls -l"? Does it change to "ls -l /from/path/* /to/path: not found"?&lt;BR /&gt;&lt;BR /&gt;-denver&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 22 Nov 2005 14:24:34 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/trying-to-do-a-mv-command-with-ssh-in-batch/m-p/3676764#M102825</guid>
      <dc:creator>Denver Osborn</dc:creator>
      <dc:date>2005-11-22T14:24:34Z</dc:date>
    </item>
    <item>
      <title>Re: trying to do a 'mv' command with ssh in batch</title>
      <link>https://community.hpe.com/t5/operating-system-linux/trying-to-do-a-mv-command-with-ssh-in-batch/m-p/3676765#M102826</link>
      <description>Denver,&lt;BR /&gt;&lt;BR /&gt;Basically this script is to perform two task, the first one is to sftp a string of files to the target server on the directory ending with /out, that is done without any problem.  The second step is once the files have been sftp'ed they then have to be moved one up on the tree so that the process that will treat those files will have a complete file and not a file in transfer.  Attach is a copy of the script&lt;BR /&gt;&lt;BR /&gt;If I take the result of the move (variable resolve) and execute it outside the script (ie: ssh blablabla) is works</description>
      <pubDate>Tue, 22 Nov 2005 15:07:04 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/trying-to-do-a-mv-command-with-ssh-in-batch/m-p/3676765#M102826</guid>
      <dc:creator>Roger Gallant</dc:creator>
      <dc:date>2005-11-22T15:07:04Z</dc:date>
    </item>
  </channel>
</rss>

