<?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: starting a script in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/starting-a-script/m-p/2948136#M115282</link>
    <description>Hi,&lt;BR /&gt;&lt;BR /&gt;Sorry to be the bearer of bad news, but you can't run shell scripts on the remote system via ftp.&lt;BR /&gt;&lt;BR /&gt;The script you have supplied is a list of ftp commands and will be executed within ftp.&lt;BR /&gt;&lt;BR /&gt;If you need to run the shell script on the remote system you'll need to use remsh or something similar.&lt;BR /&gt;   &lt;BR /&gt;regards,&lt;BR /&gt;&lt;BR /&gt;Darren.</description>
    <pubDate>Thu, 10 Apr 2003 11:41:53 GMT</pubDate>
    <dc:creator>Darren Prior</dc:creator>
    <dc:date>2003-04-10T11:41:53Z</dc:date>
    <item>
      <title>starting a script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/starting-a-script/m-p/2948113#M115259</link>
      <description>hi all,&lt;BR /&gt;i'd like to ask for help in the following matter:&lt;BR /&gt;i have a script that contains several standard commands. among them there is a command that is supposed to start another script - it is just a name of the script that is to be initialized, actually. but it doesn't work this way. &lt;BR /&gt;how to make it work?</description>
      <pubDate>Thu, 10 Apr 2003 10:48:05 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/starting-a-script/m-p/2948113#M115259</guid>
      <dc:creator>Maciej Szewczykowski</dc:creator>
      <dc:date>2003-04-10T10:48:05Z</dc:date>
    </item>
    <item>
      <title>Re: starting a script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/starting-a-script/m-p/2948114#M115260</link>
      <description>Have you used the full path name to the second script?&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Pete</description>
      <pubDate>Thu, 10 Apr 2003 10:51:12 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/starting-a-script/m-p/2948114#M115260</guid>
      <dc:creator>Pete Randall</dc:creator>
      <dc:date>2003-04-10T10:51:12Z</dc:date>
    </item>
    <item>
      <title>Re: starting a script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/starting-a-script/m-p/2948115#M115261</link>
      <description>Do you have the PATH variable set in ht script to allow the command to be "reached"? ohterwise, are you specifiying ht full pathname of the script?&lt;BR /&gt;</description>
      <pubDate>Thu, 10 Apr 2003 10:51:37 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/starting-a-script/m-p/2948115#M115261</guid>
      <dc:creator>melvyn burnard</dc:creator>
      <dc:date>2003-04-10T10:51:37Z</dc:date>
    </item>
    <item>
      <title>Re: starting a script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/starting-a-script/m-p/2948116#M115262</link>
      <description>Make sure&lt;BR /&gt;&lt;BR /&gt;1.Execute permissions of the script&lt;BR /&gt;&lt;BR /&gt;2.Provide the full path of the script.&lt;BR /&gt;&lt;BR /&gt;Thanks</description>
      <pubDate>Thu, 10 Apr 2003 10:54:49 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/starting-a-script/m-p/2948116#M115262</guid>
      <dc:creator>T G Manikandan</dc:creator>
      <dc:date>2003-04-10T10:54:49Z</dc:date>
    </item>
    <item>
      <title>Re: starting a script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/starting-a-script/m-p/2948117#M115263</link>
      <description>of course, i've given the full path and set permission properly - still nothing.</description>
      <pubDate>Thu, 10 Apr 2003 11:00:16 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/starting-a-script/m-p/2948117#M115263</guid>
      <dc:creator>Maciej Szewczykowski</dc:creator>
      <dc:date>2003-04-10T11:00:16Z</dc:date>
    </item>
    <item>
      <title>Re: starting a script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/starting-a-script/m-p/2948118#M115264</link>
      <description>hi,&lt;BR /&gt;&lt;BR /&gt;can you post the scripts or part of them?&lt;BR /&gt;&lt;BR /&gt;caller and callee&lt;BR /&gt;&lt;BR /&gt;You may wish to trace it using "echo" messages at specific parts in the code.&lt;BR /&gt;&lt;BR /&gt;thanks&lt;BR /&gt;Yogeeraj</description>
      <pubDate>Thu, 10 Apr 2003 11:04:50 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/starting-a-script/m-p/2948118#M115264</guid>
      <dc:creator>Yogeeraj_1</dc:creator>
      <dc:date>2003-04-10T11:04:50Z</dc:date>
    </item>
    <item>
      <title>Re: starting a script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/starting-a-script/m-p/2948119#M115265</link>
      <description>Well, of course, given the lack of info provided, we had to eliminate the obvious.  Thanks for your patience.  Maybe if we could see the script, we'd have more insight.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Pete</description>
      <pubDate>Thu, 10 Apr 2003 11:05:45 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/starting-a-script/m-p/2948119#M115265</guid>
      <dc:creator>Pete Randall</dc:creator>
      <dc:date>2003-04-10T11:05:45Z</dc:date>
    </item>
    <item>
      <title>Re: starting a script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/starting-a-script/m-p/2948120#M115266</link>
      <description>here goes the script - please take a look at 9th line: here is invoked the script (rem_arch) supposed to be run.</description>
      <pubDate>Thu, 10 Apr 2003 11:10:01 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/starting-a-script/m-p/2948120#M115266</guid>
      <dc:creator>Maciej Szewczykowski</dc:creator>
      <dc:date>2003-04-10T11:10:01Z</dc:date>
    </item>
    <item>
      <title>Re: starting a script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/starting-a-script/m-p/2948121#M115267</link>
      <description>try adding the line :&lt;BR /&gt;set -x&lt;BR /&gt;to hte beginning of the script and then watch the output.&lt;BR /&gt;</description>
      <pubDate>Thu, 10 Apr 2003 11:15:09 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/starting-a-script/m-p/2948121#M115267</guid>
      <dc:creator>melvyn burnard</dc:creator>
      <dc:date>2003-04-10T11:15:09Z</dc:date>
    </item>
    <item>
      <title>Re: starting a script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/starting-a-script/m-p/2948122#M115268</link>
      <description>I'm not sure what this script is doing:&lt;BR /&gt;&lt;BR /&gt;$ man put&lt;BR /&gt;No manual entry for put.&lt;BR /&gt;$ man lcd&lt;BR /&gt;No manual entry for lcd.&lt;BR /&gt;$ man mget&lt;BR /&gt;No manual entry for mget.&lt;BR /&gt;&lt;BR /&gt;Maybe some sort of ftp script, I guess?  How is it invoked?&lt;BR /&gt;&lt;BR /&gt;Pete</description>
      <pubDate>Thu, 10 Apr 2003 11:18:17 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/starting-a-script/m-p/2948122#M115268</guid>
      <dc:creator>Pete Randall</dc:creator>
      <dc:date>2003-04-10T11:18:17Z</dc:date>
    </item>
    <item>
      <title>Re: starting a script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/starting-a-script/m-p/2948123#M115269</link>
      <description>what does parameter -x cause?</description>
      <pubDate>Thu, 10 Apr 2003 11:19:17 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/starting-a-script/m-p/2948123#M115269</guid>
      <dc:creator>Maciej Szewczykowski</dc:creator>
      <dc:date>2003-04-10T11:19:17Z</dc:date>
    </item>
    <item>
      <title>Re: starting a script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/starting-a-script/m-p/2948124#M115270</link>
      <description>Try running the script in debug mode:&lt;BR /&gt;&lt;BR /&gt;sh -x scriptname&lt;BR /&gt;&lt;BR /&gt;You will the script executing every command.&lt;BR /&gt;DR</description>
      <pubDate>Thu, 10 Apr 2003 11:21:07 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/starting-a-script/m-p/2948124#M115270</guid>
      <dc:creator>Dario_1</dc:creator>
      <dc:date>2003-04-10T11:21:07Z</dc:date>
    </item>
    <item>
      <title>Re: starting a script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/starting-a-script/m-p/2948125#M115271</link>
      <description>yes indeed Pete - actually it is an input file for initializing ftp connection &lt;BR /&gt;ftp &lt;IP&gt; &amp;lt; script &lt;BR /&gt;so the commands are carried out by remote host&lt;BR /&gt;&lt;/IP&gt;</description>
      <pubDate>Thu, 10 Apr 2003 11:23:55 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/starting-a-script/m-p/2948125#M115271</guid>
      <dc:creator>Maciej Szewczykowski</dc:creator>
      <dc:date>2003-04-10T11:23:55Z</dc:date>
    </item>
    <item>
      <title>Re: starting a script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/starting-a-script/m-p/2948126#M115272</link>
      <description>hi,&lt;BR /&gt;&lt;BR /&gt;This is a "debugging-tool". After this command is executed, all further commands will be&lt;BR /&gt;printed to the terminal before they are executed until a 'set +x'&lt;BR /&gt;command is found.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;regards&lt;BR /&gt;Yogeeraj</description>
      <pubDate>Thu, 10 Apr 2003 11:24:26 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/starting-a-script/m-p/2948126#M115272</guid>
      <dc:creator>Yogeeraj_1</dc:creator>
      <dc:date>2003-04-10T11:24:26Z</dc:date>
    </item>
    <item>
      <title>Re: starting a script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/starting-a-script/m-p/2948127#M115273</link>
      <description>Ok, can you tell if the mkdir and the put(s) were successful? The last line removes all the evidence so maybe if you commented it out and then checked to make sure things are as you expect.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Pete</description>
      <pubDate>Thu, 10 Apr 2003 11:30:42 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/starting-a-script/m-p/2948127#M115273</guid>
      <dc:creator>Pete Randall</dc:creator>
      <dc:date>2003-04-10T11:30:42Z</dc:date>
    </item>
    <item>
      <title>Re: starting a script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/starting-a-script/m-p/2948128#M115274</link>
      <description>thank you all.&lt;BR /&gt;in which line of the script command set -x should be placed?</description>
      <pubDate>Thu, 10 Apr 2003 11:30:48 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/starting-a-script/m-p/2948128#M115274</guid>
      <dc:creator>Maciej Szewczykowski</dc:creator>
      <dc:date>2003-04-10T11:30:48Z</dc:date>
    </item>
    <item>
      <title>Re: starting a script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/starting-a-script/m-p/2948129#M115275</link>
      <description>hi,&lt;BR /&gt;&lt;BR /&gt;if you can't mix ftp commands with shell commands!&lt;BR /&gt;&lt;BR /&gt;this should provide you with some hints:&lt;BR /&gt;&lt;BR /&gt;...&lt;BR /&gt;for i in `cat ftp.list`; do&lt;BR /&gt;  echo "put $i"|ftp serverB&lt;BR /&gt;  file=`basename $i .txt`&lt;BR /&gt;  mv $i $FTP_ARCH/&lt;BR /&gt;done &lt;BR /&gt;...&lt;BR /&gt;&lt;BR /&gt;hth&lt;BR /&gt;Yogeeraj</description>
      <pubDate>Thu, 10 Apr 2003 11:34:09 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/starting-a-script/m-p/2948129#M115275</guid>
      <dc:creator>Yogeeraj_1</dc:creator>
      <dc:date>2003-04-10T11:34:09Z</dc:date>
    </item>
    <item>
      <title>Re: starting a script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/starting-a-script/m-p/2948130#M115276</link>
      <description>yes Pete, all the commands are successful, except the one invoking the script.</description>
      <pubDate>Thu, 10 Apr 2003 11:34:29 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/starting-a-script/m-p/2948130#M115276</guid>
      <dc:creator>Maciej Szewczykowski</dc:creator>
      <dc:date>2003-04-10T11:34:29Z</dc:date>
    </item>
    <item>
      <title>Re: starting a script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/starting-a-script/m-p/2948131#M115277</link>
      <description>set -x should be place at the position from which you wish start the debugging process.&lt;BR /&gt;&lt;BR /&gt;you stop with a "set +x"&lt;BR /&gt;&lt;BR /&gt;hth&lt;BR /&gt;yogeeraj</description>
      <pubDate>Thu, 10 Apr 2003 11:36:43 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/starting-a-script/m-p/2948131#M115277</guid>
      <dc:creator>Yogeeraj_1</dc:creator>
      <dc:date>2003-04-10T11:36:43Z</dc:date>
    </item>
    <item>
      <title>Re: starting a script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/starting-a-script/m-p/2948132#M115278</link>
      <description>You seem to be combining ftp and shell script commands together! You can't do that.&lt;BR /&gt;&lt;BR /&gt;I'm assuming this is the command thats not working:&lt;BR /&gt;&lt;BR /&gt;/usr/local/home/rainbow/archiwum/temp_arch/rem_arch&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;If this is on the local host (the host where ftp is being run from) then you could just add an exclamation mark at the start to run it in a shell:&lt;BR /&gt;&lt;BR /&gt;!/usr/local/home/rainbow/archiwum/temp_arch/rem_arch&lt;BR /&gt;&lt;BR /&gt;If this command is actually on the remote host ( the one you are ftp'ing to) then there is *no way* to run it from within ftp as it doesn't allow you to run code on the remote end.&lt;BR /&gt;&lt;BR /&gt;HTH&lt;BR /&gt;&lt;BR /&gt;Duncan</description>
      <pubDate>Thu, 10 Apr 2003 11:38:40 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/starting-a-script/m-p/2948132#M115278</guid>
      <dc:creator>Duncan Edmonstone</dc:creator>
      <dc:date>2003-04-10T11:38:40Z</dc:date>
    </item>
  </channel>
</rss>

