<?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 Batch Job Submission Script in Operating System - Linux</title>
    <link>https://community.hpe.com/t5/operating-system-linux/batch-job-submission-script/m-p/3730690#M101161</link>
    <description>Migrating from MPE to HP-UX.&lt;BR /&gt;&lt;BR /&gt;We are relatively new to Unix and Unix scripting but are quickly gaining experience with posix and perl.&lt;BR /&gt;&lt;BR /&gt;Need to convert batch jobs from Streamx (Vesoft).&lt;BR /&gt;&lt;BR /&gt;Has anyone developed a good method for this?&lt;BR /&gt;&lt;BR /&gt;Basically, Streamx prompts for variables that are then utilized within the batch job by way of code replacement just prior to launch.&lt;BR /&gt;&lt;BR /&gt;Very basic example:&lt;BR /&gt;&lt;BR /&gt;::echo Launching Example Job.&lt;BR /&gt;::read testvar?"Enter Variable ? "&lt;BR /&gt;!job testjob&lt;BR /&gt;!testcmd {testvar}&lt;BR /&gt;!eoj&lt;BR /&gt;&lt;BR /&gt;** end of example **&lt;BR /&gt;&lt;BR /&gt;:: commands are executed prior to launch.&lt;BR /&gt;!  commands are executed post launch.&lt;BR /&gt;(note: some commands were changed to unix work-alike commands in example above.)&lt;BR /&gt;&lt;BR /&gt;We have tested using Perl and Posix scripting with pros and cons for each.&lt;BR /&gt;&lt;BR /&gt;We are considering developing a full application system to hopefully provide more functionality but this would be a more lengthy conversion.&lt;BR /&gt;&lt;BR /&gt;Any ideas or suggestions would be appreciated.&lt;BR /&gt;</description>
    <pubDate>Mon, 13 Feb 2006 18:28:06 GMT</pubDate>
    <dc:creator>Blair Combs</dc:creator>
    <dc:date>2006-02-13T18:28:06Z</dc:date>
    <item>
      <title>Batch Job Submission Script</title>
      <link>https://community.hpe.com/t5/operating-system-linux/batch-job-submission-script/m-p/3730690#M101161</link>
      <description>Migrating from MPE to HP-UX.&lt;BR /&gt;&lt;BR /&gt;We are relatively new to Unix and Unix scripting but are quickly gaining experience with posix and perl.&lt;BR /&gt;&lt;BR /&gt;Need to convert batch jobs from Streamx (Vesoft).&lt;BR /&gt;&lt;BR /&gt;Has anyone developed a good method for this?&lt;BR /&gt;&lt;BR /&gt;Basically, Streamx prompts for variables that are then utilized within the batch job by way of code replacement just prior to launch.&lt;BR /&gt;&lt;BR /&gt;Very basic example:&lt;BR /&gt;&lt;BR /&gt;::echo Launching Example Job.&lt;BR /&gt;::read testvar?"Enter Variable ? "&lt;BR /&gt;!job testjob&lt;BR /&gt;!testcmd {testvar}&lt;BR /&gt;!eoj&lt;BR /&gt;&lt;BR /&gt;** end of example **&lt;BR /&gt;&lt;BR /&gt;:: commands are executed prior to launch.&lt;BR /&gt;!  commands are executed post launch.&lt;BR /&gt;(note: some commands were changed to unix work-alike commands in example above.)&lt;BR /&gt;&lt;BR /&gt;We have tested using Perl and Posix scripting with pros and cons for each.&lt;BR /&gt;&lt;BR /&gt;We are considering developing a full application system to hopefully provide more functionality but this would be a more lengthy conversion.&lt;BR /&gt;&lt;BR /&gt;Any ideas or suggestions would be appreciated.&lt;BR /&gt;</description>
      <pubDate>Mon, 13 Feb 2006 18:28:06 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/batch-job-submission-script/m-p/3730690#M101161</guid>
      <dc:creator>Blair Combs</dc:creator>
      <dc:date>2006-02-13T18:28:06Z</dc:date>
    </item>
    <item>
      <title>Re: Batch Job Submission Script</title>
      <link>https://community.hpe.com/t5/operating-system-linux/batch-job-submission-script/m-p/3730691#M101162</link>
      <description>Shalom Blair,&lt;BR /&gt;&lt;BR /&gt;You might find expect scripting is useful to you.&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://hpux.connect.org.uk/hppd/hpux/Tcl/expect-5.43/" target="_blank"&gt;http://hpux.connect.org.uk/hppd/hpux/Tcl/expect-5.43/&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;SEP&lt;BR /&gt;Help I keep posting when I should be asleep.</description>
      <pubDate>Mon, 13 Feb 2006 18:33:27 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/batch-job-submission-script/m-p/3730691#M101162</guid>
      <dc:creator>Steven E. Protter</dc:creator>
      <dc:date>2006-02-13T18:33:27Z</dc:date>
    </item>
    <item>
      <title>Re: Batch Job Submission Script</title>
      <link>https://community.hpe.com/t5/operating-system-linux/batch-job-submission-script/m-p/3730692#M101163</link>
      <description>Hi Blair:&lt;BR /&gt;&lt;BR /&gt;In the absence of details, at first blush, either would suffice nicely.&lt;BR /&gt;&lt;BR /&gt;If you are comfortable using perl, I would certainly consider building your job streams with it; *particularly* if you are considering developing a full applications system as you note.&lt;BR /&gt;&lt;BR /&gt;The advantage gained, depending upon the complexity of your command parsing, would be that perl can handle matching, extracting and substituting pieces of parsed data in a more simple, elegant way than pure shell or shell blended with 'awk' or 'sed'.&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...</description>
      <pubDate>Mon, 13 Feb 2006 18:45:25 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/batch-job-submission-script/m-p/3730692#M101163</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2006-02-13T18:45:25Z</dc:date>
    </item>
    <item>
      <title>Re: Batch Job Submission Script</title>
      <link>https://community.hpe.com/t5/operating-system-linux/batch-job-submission-script/m-p/3730693#M101164</link>
      <description>You can automate the execution with buildin shell utilities like,&lt;BR /&gt;&lt;BR /&gt;command &amp;lt;&amp;lt;-EOF&lt;BR /&gt;..&lt;BR /&gt;EOF&lt;BR /&gt;&lt;BR /&gt;syntax. Or piping as,&lt;BR /&gt;&lt;BR /&gt;(&lt;BR /&gt;echo "inputr"&lt;BR /&gt;sleep 1&lt;BR /&gt;echo "input"&lt;BR /&gt;sleep 1&lt;BR /&gt;) | command.&lt;BR /&gt;&lt;BR /&gt;It is suitable to normal application. We can not use these tricks with secured things like ssh, su. We can use expect scripting in that stage. I hope you are requirement is falling with this 3rd of expect scripting.&lt;BR /&gt;&lt;BR /&gt;--&lt;BR /&gt;Muthu&lt;BR /&gt;</description>
      <pubDate>Tue, 14 Feb 2006 03:11:52 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/batch-job-submission-script/m-p/3730693#M101164</guid>
      <dc:creator>Muthukumar_5</dc:creator>
      <dc:date>2006-02-14T03:11:52Z</dc:date>
    </item>
    <item>
      <title>Re: Batch Job Submission Script</title>
      <link>https://community.hpe.com/t5/operating-system-linux/batch-job-submission-script/m-p/3730694#M101165</link>
      <description>Hello, &lt;BR /&gt;&lt;BR /&gt;As suggested, expect scripting will be the easiest of all. Perl is a very good, flexible scripting language in Unix and windows as well. &lt;BR /&gt;&lt;BR /&gt;-Arun</description>
      <pubDate>Tue, 14 Feb 2006 03:28:55 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/batch-job-submission-script/m-p/3730694#M101165</guid>
      <dc:creator>Arunvijai_4</dc:creator>
      <dc:date>2006-02-14T03:28:55Z</dc:date>
    </item>
    <item>
      <title>Re: Batch Job Submission Script</title>
      <link>https://community.hpe.com/t5/operating-system-linux/batch-job-submission-script/m-p/3730695#M101166</link>
      <description>Thanks for the ideas provided.&lt;BR /&gt;&lt;BR /&gt;I've been reading up on Expect and it appears to be a utility for automating responses to interactive prompts, among other things.&lt;BR /&gt;&lt;BR /&gt;This is not my goal. I want the user to respond to all prompts. However, I want those responses to then be available to the batch job launched subsequent to the prompts.&lt;BR /&gt;&lt;BR /&gt;Could I perhaps (reference basic example in the thread header):&lt;BR /&gt;&lt;BR /&gt;1) grep the '::' lines into filea for execution as a normal posix shell script, after removing '::' from the front of each line.&lt;BR /&gt;2) editor-like line change commands could be added and echo'd to fileb after each interactive prompt and successful response.&lt;BR /&gt;(echo change '{var1}' to '$var1' all &amp;gt;&amp;gt;fileb )&lt;BR /&gt;3) grep all lines without '::' into filec.&lt;BR /&gt;4) run fileb against filec using editor making global changes to replace {vars} with the actual responses.&lt;BR /&gt;5) launch filec.&lt;BR /&gt;&lt;BR /&gt;Does this make sense?&lt;BR /&gt;&lt;BR /&gt;Blair</description>
      <pubDate>Tue, 14 Feb 2006 16:55:26 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/batch-job-submission-script/m-p/3730695#M101166</guid>
      <dc:creator>Blair Combs</dc:creator>
      <dc:date>2006-02-14T16:55:26Z</dc:date>
    </item>
    <item>
      <title>Re: Batch Job Submission Script</title>
      <link>https://community.hpe.com/t5/operating-system-linux/batch-job-submission-script/m-p/3730696#M101167</link>
      <description>Blair&lt;BR /&gt;#!/usr/bin/perl &lt;BR /&gt;use strict;&lt;BR /&gt;use diagnostics;&lt;BR /&gt;&lt;BR /&gt;print "Enter response:";&lt;BR /&gt;my $response=&lt;STDIN&gt;;&lt;BR /&gt;system("batchjob $response");&lt;BR /&gt;&lt;BR /&gt;hope this is what you are looking for&lt;/STDIN&gt;</description>
      <pubDate>Tue, 14 Feb 2006 17:11:05 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/batch-job-submission-script/m-p/3730696#M101167</guid>
      <dc:creator>David Bellamy</dc:creator>
      <dc:date>2006-02-14T17:11:05Z</dc:date>
    </item>
    <item>
      <title>Re: Batch Job Submission Script</title>
      <link>https://community.hpe.com/t5/operating-system-linux/batch-job-submission-script/m-p/3730697#M101168</link>
      <description>Hi,&lt;BR /&gt;basically you ahve to change from:&lt;BR /&gt;::echo Launching Example Job.&lt;BR /&gt;::read testvar?"Enter Variable ? "&lt;BR /&gt;!job testjob&lt;BR /&gt;!testcmd {testvar}&lt;BR /&gt;!eoj&lt;BR /&gt;&lt;BR /&gt;to:&lt;BR /&gt;echo Launching Example Job.&lt;BR /&gt;read testvar?"Enter Variable ? "&lt;BR /&gt;noput testcmd testvar &amp;amp;&lt;BR /&gt;&lt;BR /&gt;so I'd use:&lt;BR /&gt;sed 's/:://g;/!job/d;/!eoj/d;s/^!/nohup /;/nohup/ s/$/ \&amp;amp;/'&lt;BR /&gt;&lt;BR /&gt;to obtain this.&lt;BR /&gt;HTH,&lt;BR /&gt;Art</description>
      <pubDate>Wed, 15 Feb 2006 04:27:28 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/batch-job-submission-script/m-p/3730697#M101168</guid>
      <dc:creator>Arturo Galbiati</dc:creator>
      <dc:date>2006-02-15T04:27:28Z</dc:date>
    </item>
    <item>
      <title>Re: Batch Job Submission Script</title>
      <link>https://community.hpe.com/t5/operating-system-linux/batch-job-submission-script/m-p/3730698#M101169</link>
      <description>Is it this you want:&lt;BR /&gt;&lt;BR /&gt;#!/bin/sh&lt;BR /&gt;# scriptname: dojob1&lt;BR /&gt;echo "Launch Example"&lt;BR /&gt;read testvar?"Enter variable: "&lt;BR /&gt;export testvar&lt;BR /&gt;./dojob2&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;#!/bin/sh&lt;BR /&gt;# scriptname: dojob2&lt;BR /&gt;echo "In dojob2: $testvar"&lt;BR /&gt;&lt;BR /&gt;Both scripts should be in the same directory.&lt;BR /&gt;If not, enter full path in stead of ./dojob2&lt;BR /&gt;&lt;BR /&gt;Greetings,&lt;BR /&gt;Philippe</description>
      <pubDate>Wed, 15 Feb 2006 04:46:07 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/batch-job-submission-script/m-p/3730698#M101169</guid>
      <dc:creator>Philippe Vervoort</dc:creator>
      <dc:date>2006-02-15T04:46:07Z</dc:date>
    </item>
    <item>
      <title>Re: Batch Job Submission Script</title>
      <link>https://community.hpe.com/t5/operating-system-linux/batch-job-submission-script/m-p/3730699#M101170</link>
      <description>Thanks much for the ideas.&lt;BR /&gt;&lt;BR /&gt;David, Is there something similar in Posix Shell?&lt;BR /&gt;&lt;BR /&gt;Arturo, I am not familiar with the command 'noput'. We are using the posix shell.&lt;BR /&gt;&lt;BR /&gt;Phillipe, I need all the source in one file and the program must run offline in batch. However, the process to submit the job could create temp files in order to successfully launch the program.&lt;BR /&gt;&lt;BR /&gt;Thanks again and keep trying!&lt;BR /&gt;</description>
      <pubDate>Wed, 15 Feb 2006 12:16:32 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/batch-job-submission-script/m-p/3730699#M101170</guid>
      <dc:creator>Blair Combs</dc:creator>
      <dc:date>2006-02-15T12:16:32Z</dc:date>
    </item>
    <item>
      <title>Re: Batch Job Submission Script</title>
      <link>https://community.hpe.com/t5/operating-system-linux/batch-job-submission-script/m-p/3730700#M101171</link>
      <description>echo "Enter Response:"&lt;BR /&gt;read x&lt;BR /&gt;batchjob($x)</description>
      <pubDate>Wed, 22 Feb 2006 15:13:55 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/batch-job-submission-script/m-p/3730700#M101171</guid>
      <dc:creator>David Bellamy</dc:creator>
      <dc:date>2006-02-22T15:13:55Z</dc:date>
    </item>
  </channel>
</rss>

