<?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: need help with script in Operating System - Linux</title>
    <link>https://community.hpe.com/t5/operating-system-linux/need-help-with-script/m-p/4039137#M93955</link>
    <description>run the ps2pdf14 in a for loop&lt;BR /&gt;manually confirm the counts for .ps and .pdf and make sure they are same&lt;BR /&gt;run the rm in a for loop&lt;BR /&gt;&lt;BR /&gt;for i in `cat ps.list`&lt;BR /&gt;do&lt;BR /&gt;conversion command&lt;BR /&gt;rcode=echo $?&lt;BR /&gt;if [ rcode=0 ]&lt;BR /&gt;then&lt;BR /&gt;##rm $i&lt;BR /&gt;fi&lt;BR /&gt;done.&lt;BR /&gt;&lt;BR /&gt;Script check the return code of conversion.Run the rm later after manual verification; to be in safe side.</description>
    <pubDate>Tue, 17 Jul 2007 20:18:01 GMT</pubDate>
    <dc:creator>skt_skt</dc:creator>
    <dc:date>2007-07-17T20:18:01Z</dc:date>
    <item>
      <title>need help with script</title>
      <link>https://community.hpe.com/t5/operating-system-linux/need-help-with-script/m-p/4039136#M93954</link>
      <description>Hello.&lt;BR /&gt;&lt;BR /&gt;I need a SH script that will convert all files in a directory from .ps to .pdf and then delete .ps files&lt;BR /&gt;&lt;BR /&gt;The command i use for converting files is ps2pdf14 -r600 file.ps&lt;BR /&gt;&lt;BR /&gt;Thanks for help. 10 points will be assigned!&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 17 Jul 2007 19:18:43 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/need-help-with-script/m-p/4039136#M93954</guid>
      <dc:creator>Luka Kodric</dc:creator>
      <dc:date>2007-07-17T19:18:43Z</dc:date>
    </item>
    <item>
      <title>Re: need help with script</title>
      <link>https://community.hpe.com/t5/operating-system-linux/need-help-with-script/m-p/4039137#M93955</link>
      <description>run the ps2pdf14 in a for loop&lt;BR /&gt;manually confirm the counts for .ps and .pdf and make sure they are same&lt;BR /&gt;run the rm in a for loop&lt;BR /&gt;&lt;BR /&gt;for i in `cat ps.list`&lt;BR /&gt;do&lt;BR /&gt;conversion command&lt;BR /&gt;rcode=echo $?&lt;BR /&gt;if [ rcode=0 ]&lt;BR /&gt;then&lt;BR /&gt;##rm $i&lt;BR /&gt;fi&lt;BR /&gt;done.&lt;BR /&gt;&lt;BR /&gt;Script check the return code of conversion.Run the rm later after manual verification; to be in safe side.</description>
      <pubDate>Tue, 17 Jul 2007 20:18:01 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/need-help-with-script/m-p/4039137#M93955</guid>
      <dc:creator>skt_skt</dc:creator>
      <dc:date>2007-07-17T20:18:01Z</dc:date>
    </item>
    <item>
      <title>Re: need help with script</title>
      <link>https://community.hpe.com/t5/operating-system-linux/need-help-with-script/m-p/4039138#M93956</link>
      <description>Okay Thanks for help&lt;BR /&gt;but i have a question&lt;BR /&gt;&lt;BR /&gt;what does this `cat ps.list` do? i mean i don't have any ps.list file. In a directory there is just a bunch of .ps files.</description>
      <pubDate>Tue, 17 Jul 2007 20:53:34 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/need-help-with-script/m-p/4039138#M93956</guid>
      <dc:creator>Luka Kodric</dc:creator>
      <dc:date>2007-07-17T20:53:34Z</dc:date>
    </item>
    <item>
      <title>Re: need help with script</title>
      <link>https://community.hpe.com/t5/operating-system-linux/need-help-with-script/m-p/4039139#M93957</link>
      <description>&amp;gt;what does this `cat ps.list` do?&lt;BR /&gt;&lt;BR /&gt;I was going to suggest that cat shouldn't be used but it seems that Santhosh left out a step of ls *.ps?  Besides fixing it, we can improve it:&lt;BR /&gt;for i in $(ls *.ps); do</description>
      <pubDate>Tue, 17 Jul 2007 21:52:50 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/need-help-with-script/m-p/4039139#M93957</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2007-07-17T21:52:50Z</dc:date>
    </item>
    <item>
      <title>Re: need help with script</title>
      <link>https://community.hpe.com/t5/operating-system-linux/need-help-with-script/m-p/4039140#M93958</link>
      <description>&lt;!--!*#--&gt;The 'cat ps.lst' assumes that all .ps file names are stored within a file named ps.lst. Alternatively you could use the script below to do the .ps to .pdf conversion followed by removal of .ps files:&lt;BR /&gt;&lt;BR /&gt;#!/usr/bin/sh&lt;BR /&gt;&lt;BR /&gt;ls -1 &lt;DIR_WITH_PS_FILES&gt;/*.ps | while read file&lt;BR /&gt;do&lt;BR /&gt;   ps2pdf14 -r600 $file &amp;amp;&amp;amp; rm $file&lt;BR /&gt;done&lt;BR /&gt;&lt;/DIR_WITH_PS_FILES&gt;</description>
      <pubDate>Tue, 17 Jul 2007 22:00:13 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/need-help-with-script/m-p/4039140#M93958</guid>
      <dc:creator>Sandman!</dc:creator>
      <dc:date>2007-07-17T22:00:13Z</dc:date>
    </item>
    <item>
      <title>Re: need help with script</title>
      <link>https://community.hpe.com/t5/operating-system-linux/need-help-with-script/m-p/4039141#M93959</link>
      <description>I'd like to thank all of you for your help. :)</description>
      <pubDate>Wed, 18 Jul 2007 05:32:42 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/need-help-with-script/m-p/4039141#M93959</guid>
      <dc:creator>Luka Kodric</dc:creator>
      <dc:date>2007-07-18T05:32:42Z</dc:date>
    </item>
  </channel>
</rss>

