<?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: Script ISSUE in Operating System - Linux</title>
    <link>https://community.hpe.com/t5/operating-system-linux/script-issue/m-p/4940846#M102774</link>
    <description>/opt/mqm/scripts/mqigetfn CREATE ${DIRECTORY}/ ${QNAME} ${QMANAGER}&lt;BR /&gt;perl -pi -e 's/\r\n/\n/g' /usr/hptest.txt&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;this is working but &lt;BR /&gt;&lt;BR /&gt;that filename i dont know this are through script that time how should i get the filename &lt;BR /&gt;&lt;BR /&gt;from ls -tr how i should i take last row filename i.e latest file.</description>
    <pubDate>Wed, 16 Nov 2005 03:34:16 GMT</pubDate>
    <dc:creator>Karthick K S</dc:creator>
    <dc:date>2005-11-16T03:34:16Z</dc:date>
    <item>
      <title>Script ISSUE</title>
      <link>https://community.hpe.com/t5/operating-system-linux/script-issue/m-p/4940832#M102760</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;I am facing some problem on script,&lt;BR /&gt;i want to assign output(i.e some file) to some variable its given below, after that i want rename this filename.&lt;BR /&gt;&lt;BR /&gt;gmfile=$(/opt/mqm/scripts/mqigetfn CREATE ${DIRECTORY}/ ${QNAME} ${QMANAGER})&lt;BR /&gt;&lt;BR /&gt;mv gmfile xxtest.txt&lt;BR /&gt;&lt;BR /&gt;but its not working pls help me on this&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 16 Nov 2005 00:58:27 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/script-issue/m-p/4940832#M102760</guid>
      <dc:creator>Karthick K S</dc:creator>
      <dc:date>2005-11-16T00:58:27Z</dc:date>
    </item>
    <item>
      <title>Re: Script ISSUE</title>
      <link>https://community.hpe.com/t5/operating-system-linux/script-issue/m-p/4940833#M102761</link>
      <description>Can you run the command manually??&lt;BR /&gt;&lt;BR /&gt;Have you set all required variables??&lt;BR /&gt;&lt;BR /&gt;set -vx, now do gmfile=$(/opt/mqm/scripts/mqigetfn CREATE ${DIRECTORY}/ ${QNAME} ${QMANAGER})&lt;BR /&gt;&lt;BR /&gt;Does complain about anything??</description>
      <pubDate>Wed, 16 Nov 2005 01:04:40 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/script-issue/m-p/4940833#M102761</guid>
      <dc:creator>RAC_1</dc:creator>
      <dc:date>2005-11-16T01:04:40Z</dc:date>
    </item>
    <item>
      <title>Re: Script ISSUE</title>
      <link>https://community.hpe.com/t5/operating-system-linux/script-issue/m-p/4940834#M102762</link>
      <description>Hi RAC,&lt;BR /&gt;&lt;BR /&gt;I set all varibales &lt;BR /&gt;&lt;BR /&gt;i runned the same but its same problem file received on filesystem but not assign to variable &lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 16 Nov 2005 01:22:01 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/script-issue/m-p/4940834#M102762</guid>
      <dc:creator>Karthick K S</dc:creator>
      <dc:date>2005-11-16T01:22:01Z</dc:date>
    </item>
    <item>
      <title>Re: Script ISSUE</title>
      <link>https://community.hpe.com/t5/operating-system-linux/script-issue/m-p/4940835#M102763</link>
      <description>Can you post what you are getting for?&lt;BR /&gt;&lt;BR /&gt;/opt/mqm/scripts/mqigetfn CREATE ${DIRECTORY}/ ${QNAME} ${QMANAGER}&lt;BR /&gt;&lt;BR /&gt;gmfile="$(/opt/mqm/scripts/mqigetfn CREATE ${DIRECTORY}/ ${QNAME} ${QMANAGER})"&lt;BR /&gt;echo ${gmfile}&lt;BR /&gt;&lt;BR /&gt;post this information.!&lt;BR /&gt;&lt;BR /&gt;hth.</description>
      <pubDate>Wed, 16 Nov 2005 01:27:56 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/script-issue/m-p/4940835#M102763</guid>
      <dc:creator>Muthukumar_5</dc:creator>
      <dc:date>2005-11-16T01:27:56Z</dc:date>
    </item>
    <item>
      <title>Re: Script ISSUE</title>
      <link>https://community.hpe.com/t5/operating-system-linux/script-issue/m-p/4940836#M102764</link>
      <description>&lt;BR /&gt;/opt/mqm/scripts/mqigetfn CREATE /usr/ ${QNAME} ${QMANAGER}&lt;BR /&gt;For this output is,&lt;BR /&gt;file will copied on filesystem /usr/&lt;BR /&gt;&lt;BR /&gt;gmfile="$(/opt/mqm/scripts/mqigetfn CREATE ${DIRECTORY}/ ${QNAME} ${QMANAGER})"&lt;BR /&gt;echo ${gmfile}&lt;BR /&gt;&lt;BR /&gt;for this output is,&lt;BR /&gt;null there is no output but file copied to filesystem&lt;BR /&gt;&lt;BR /&gt;Actually what my problem i receive file containing ^M containing i want to remove ^M character then copied to that samefilename &lt;BR /&gt;</description>
      <pubDate>Wed, 16 Nov 2005 01:50:19 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/script-issue/m-p/4940836#M102764</guid>
      <dc:creator>Karthick K S</dc:creator>
      <dc:date>2005-11-16T01:50:19Z</dc:date>
    </item>
    <item>
      <title>Re: Script ISSUE</title>
      <link>https://community.hpe.com/t5/operating-system-linux/script-issue/m-p/4940837#M102765</link>
      <description>^M characters will be added when you transfer a file from dos.&lt;BR /&gt;&lt;BR /&gt;Change it as,&lt;BR /&gt;&lt;BR /&gt;dos2ux filename &amp;gt; newfile&lt;BR /&gt;&lt;BR /&gt;strings filename &amp;gt; newfile&lt;BR /&gt;&lt;BR /&gt;It will be changed.&lt;BR /&gt;&lt;BR /&gt;hth.&lt;BR /&gt;</description>
      <pubDate>Wed, 16 Nov 2005 01:59:15 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/script-issue/m-p/4940837#M102765</guid>
      <dc:creator>Muthukumar_5</dc:creator>
      <dc:date>2005-11-16T01:59:15Z</dc:date>
    </item>
    <item>
      <title>Re: Script ISSUE</title>
      <link>https://community.hpe.com/t5/operating-system-linux/script-issue/m-p/4940838#M102766</link>
      <description>Refer this to remove ^M characters more,&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=972302" target="_blank"&gt;http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=972302&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;If you want to change into the same file then,&lt;BR /&gt;&lt;BR /&gt;perl -pi -e 's/\^M//g' filename&lt;BR /&gt;&lt;BR /&gt;hth.&lt;BR /&gt;</description>
      <pubDate>Wed, 16 Nov 2005 02:01:57 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/script-issue/m-p/4940838#M102766</guid>
      <dc:creator>Muthukumar_5</dc:creator>
      <dc:date>2005-11-16T02:01:57Z</dc:date>
    </item>
    <item>
      <title>Re: Script ISSUE</title>
      <link>https://community.hpe.com/t5/operating-system-linux/script-issue/m-p/4940839#M102767</link>
      <description>I know that dos2ux but for eg.&lt;BR /&gt;&lt;BR /&gt;my file name is hptest.txt&lt;BR /&gt;&lt;BR /&gt;opt/mqm/scripts/mqigetfn CREATE /usr/ ${QNAME} ${QMANAGER&lt;BR /&gt;&lt;BR /&gt;after i runned this one &lt;BR /&gt;&lt;BR /&gt;/usr/hptest.txt but containing ^M character&lt;BR /&gt;&lt;BR /&gt;i want to remove ^M character then filename should be /usr/hptest.txt&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 16 Nov 2005 02:02:57 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/script-issue/m-p/4940839#M102767</guid>
      <dc:creator>Karthick K S</dc:creator>
      <dc:date>2005-11-16T02:02:57Z</dc:date>
    </item>
    <item>
      <title>Re: Script ISSUE</title>
      <link>https://community.hpe.com/t5/operating-system-linux/script-issue/m-p/4940840#M102768</link>
      <description>does following work??&lt;BR /&gt;&lt;BR /&gt;gmfile=$(/opt/mqm/scripts/mqigetfn CREATE "${DIRECTORY}/ ${QNAME} ${QMANAGER}")&lt;BR /&gt;&lt;BR /&gt;echo ${gmfile}</description>
      <pubDate>Wed, 16 Nov 2005 02:03:07 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/script-issue/m-p/4940840#M102768</guid>
      <dc:creator>RAC_1</dc:creator>
      <dc:date>2005-11-16T02:03:07Z</dc:date>
    </item>
    <item>
      <title>Re: Script ISSUE</title>
      <link>https://community.hpe.com/t5/operating-system-linux/script-issue/m-p/4940841#M102769</link>
      <description>Do like,&lt;BR /&gt;&lt;BR /&gt;/opt/mqm/scripts/mqigetfn CREATE /usr/ ${QNAME} ${QMANAGER}&lt;BR /&gt;perl -pi -e 's/\^M//g' /usr/hptest.txt&lt;BR /&gt;&lt;BR /&gt;It will do it.&lt;BR /&gt;&lt;BR /&gt;hth.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 16 Nov 2005 02:13:35 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/script-issue/m-p/4940841#M102769</guid>
      <dc:creator>Muthukumar_5</dc:creator>
      <dc:date>2005-11-16T02:13:35Z</dc:date>
    </item>
    <item>
      <title>Re: Script ISSUE</title>
      <link>https://community.hpe.com/t5/operating-system-linux/script-issue/m-p/4940842#M102770</link>
      <description>perl -ni.bak -e 's/\r\n/\n/s;s/\032//s;print' /usr/hptest.txt&lt;BR /&gt;&lt;BR /&gt;This will remove ^M characters from /usr/hptest.txt file and also make a backup copy with .bak extension (ie. hptest.txt.bak)&lt;BR /&gt;&lt;BR /&gt;hth</description>
      <pubDate>Wed, 16 Nov 2005 02:13:42 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/script-issue/m-p/4940842#M102770</guid>
      <dc:creator>Orhan Biyiklioglu</dc:creator>
      <dc:date>2005-11-16T02:13:42Z</dc:date>
    </item>
    <item>
      <title>Re: Script ISSUE</title>
      <link>https://community.hpe.com/t5/operating-system-linux/script-issue/m-p/4940843#M102771</link>
      <description>perl -pi -e 's/\^M//g' /usr/hptest.txt&lt;BR /&gt;&lt;BR /&gt;its not removing ^M character</description>
      <pubDate>Wed, 16 Nov 2005 02:19:43 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/script-issue/m-p/4940843#M102771</guid>
      <dc:creator>Karthick K S</dc:creator>
      <dc:date>2005-11-16T02:19:43Z</dc:date>
    </item>
    <item>
      <title>Re: Script ISSUE</title>
      <link>https://community.hpe.com/t5/operating-system-linux/script-issue/m-p/4940844#M102772</link>
      <description>/opt/mqm/scripts/mqigetfn CREATE /usr/ ${QNAME} ${QMANAGER}|dos2ux&lt;BR /&gt;</description>
      <pubDate>Wed, 16 Nov 2005 02:21:22 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/script-issue/m-p/4940844#M102772</guid>
      <dc:creator>RAC_1</dc:creator>
      <dc:date>2005-11-16T02:21:22Z</dc:date>
    </item>
    <item>
      <title>Re: Script ISSUE</title>
      <link>https://community.hpe.com/t5/operating-system-linux/script-issue/m-p/4940845#M102773</link>
      <description>sorry. Just use as,&lt;BR /&gt;&lt;BR /&gt;perl -pi -e 's/\r\n/\n/g' /usr/hptest.txt&lt;BR /&gt;&lt;BR /&gt;Example:&lt;BR /&gt; # cat -v test.txt&lt;BR /&gt;hi^M&lt;BR /&gt;bye # perl -pi -e 's/\r\n/\n/' test.txt&lt;BR /&gt;# cat -v test.txt&lt;BR /&gt;hi&lt;BR /&gt;bye#&lt;BR /&gt;&lt;BR /&gt;Steps:&lt;BR /&gt;&lt;BR /&gt;/opt/mqm/scripts/mqigetfn CREATE ${DIRECTORY}/ ${QNAME} ${QMANAGER}&lt;BR /&gt;perl -pi -e 's/\r\n/\n/g' /usr/hptest.txt&lt;BR /&gt;&lt;BR /&gt;hth&lt;BR /&gt;</description>
      <pubDate>Wed, 16 Nov 2005 03:16:08 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/script-issue/m-p/4940845#M102773</guid>
      <dc:creator>Muthukumar_5</dc:creator>
      <dc:date>2005-11-16T03:16:08Z</dc:date>
    </item>
    <item>
      <title>Re: Script ISSUE</title>
      <link>https://community.hpe.com/t5/operating-system-linux/script-issue/m-p/4940846#M102774</link>
      <description>/opt/mqm/scripts/mqigetfn CREATE ${DIRECTORY}/ ${QNAME} ${QMANAGER}&lt;BR /&gt;perl -pi -e 's/\r\n/\n/g' /usr/hptest.txt&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;this is working but &lt;BR /&gt;&lt;BR /&gt;that filename i dont know this are through script that time how should i get the filename &lt;BR /&gt;&lt;BR /&gt;from ls -tr how i should i take last row filename i.e latest file.</description>
      <pubDate>Wed, 16 Nov 2005 03:34:16 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/script-issue/m-p/4940846#M102774</guid>
      <dc:creator>Karthick K S</dc:creator>
      <dc:date>2005-11-16T03:34:16Z</dc:date>
    </item>
    <item>
      <title>Re: Script ISSUE</title>
      <link>https://community.hpe.com/t5/operating-system-linux/script-issue/m-p/4940847#M102775</link>
      <description>ll -tr | tail -1 | awk '{print $9}'&lt;BR /&gt;&lt;BR /&gt;will give you the name of the last modified file.&lt;BR /&gt;&lt;BR /&gt;hth</description>
      <pubDate>Wed, 16 Nov 2005 03:39:47 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/script-issue/m-p/4940847#M102775</guid>
      <dc:creator>Orhan Biyiklioglu</dc:creator>
      <dc:date>2005-11-16T03:39:47Z</dc:date>
    </item>
    <item>
      <title>Re: Script ISSUE</title>
      <link>https://community.hpe.com/t5/operating-system-linux/script-issue/m-p/4940848#M102776</link>
      <description>Please elaborate this action first:&lt;BR /&gt;&lt;BR /&gt;Question 1:&lt;BR /&gt;/opt/mqm/scripts/mqigetfn CREATE ${DIRECTORY}/ ${QNAME} ${QMANAGER}&lt;BR /&gt;&lt;BR /&gt;what is ${DIRECTORY}, ${QNAME} and ${QMANAGER} variable contents.&lt;BR /&gt;&lt;BR /&gt;--&lt;BR /&gt;&lt;BR /&gt;We can get latest file in /usr directory as,&lt;BR /&gt;&lt;BR /&gt;cd /usr&lt;BR /&gt;ls -lt | head -2 | tail -1 | awk '{ print $9 }'&lt;BR /&gt;&lt;BR /&gt;It will not work all the times. If some body update the file contents then hpuxtest.txt will not come anyway. &lt;BR /&gt;&lt;BR /&gt;Question 2:&lt;BR /&gt;Is the new file creation will be with hpuxtest.txt only or with some other specific name.&lt;BR /&gt;--&lt;BR /&gt;&lt;BR /&gt;Question 3:&lt;BR /&gt;Is /opt/mqm/scripts/mqigetfn CREATE ${DIRECTORY}/ ${QNAME} ${QMANAGER} copying file to /usr directory? Is there any verbose information which saying that specific file is copied to location?&lt;BR /&gt;&lt;BR /&gt;--&lt;BR /&gt;&lt;BR /&gt;Post all relavent informations to answer. &lt;BR /&gt;&lt;BR /&gt;hth.</description>
      <pubDate>Wed, 16 Nov 2005 03:45:37 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/script-issue/m-p/4940848#M102776</guid>
      <dc:creator>Muthukumar_5</dc:creator>
      <dc:date>2005-11-16T03:45:37Z</dc:date>
    </item>
    <item>
      <title>Re: Script ISSUE</title>
      <link>https://community.hpe.com/t5/operating-system-linux/script-issue/m-p/4940849#M102777</link>
      <description>Question 1:&lt;BR /&gt;/opt/mqm/scripts/mqigetfn CREATE ${DIRECTORY}/ ${QNAME} ${QMANAGER}&lt;BR /&gt;&lt;BR /&gt;${DIRECTORY} is /usr/received/&lt;BR /&gt;&lt;BR /&gt;&amp;amp;{QNAME}-Qeuenname&lt;BR /&gt;&lt;BR /&gt;${QMANAGER}-QueueManager Name &lt;BR /&gt;&lt;BR /&gt;I will receive file from some other place i.e Singapore&lt;BR /&gt;&lt;BR /&gt; &lt;BR /&gt;&lt;BR /&gt;Question 2:&lt;BR /&gt;Is the new file creation will be with hpuxtest.txt only or with some other specific name.&lt;BR /&gt;&lt;BR /&gt;No filename would be differenct at each time &lt;BR /&gt;--&lt;BR /&gt;&lt;BR /&gt;Question 3:&lt;BR /&gt;Is /opt/mqm/scripts/mqigetfn CREATE ${DIRECTORY}/ ${QNAME} ${QMANAGER} copying file to /usr directory? &lt;BR /&gt;No Verbose information &lt;BR /&gt;&lt;BR /&gt;last question &lt;BR /&gt;&lt;BR /&gt;we can use perl command on shell script&lt;BR /&gt;&lt;BR /&gt;--&lt;BR /&gt;</description>
      <pubDate>Wed, 16 Nov 2005 04:09:35 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/script-issue/m-p/4940849#M102777</guid>
      <dc:creator>Karthick K S</dc:creator>
      <dc:date>2005-11-16T04:09:35Z</dc:date>
    </item>
    <item>
      <title>Re: Script ISSUE</title>
      <link>https://community.hpe.com/t5/operating-system-linux/script-issue/m-p/4940850#M102778</link>
      <description>Do you meant to ask "can we use perl command on shell script?"&lt;BR /&gt;&lt;BR /&gt;Yes. Surely. You can use all shell actions with shell scripts. &lt;BR /&gt;&lt;BR /&gt;The only problem you are having now is the filename which you are getting from singapore. /opt/mqm/scripts/mqigetfn CREATE ${DIRECTORY}/ ${QNAME} ${QMANAGER} action is not returning any filename information. How do you know that it will create in /usr/ location? Collect the location where exactly that application copies the file. &lt;BR /&gt;&lt;BR /&gt;Can you post the execution details of,&lt;BR /&gt;&lt;BR /&gt;/opt/mqm/scripts/mqigetfn CREATE ${DIRECTORY}/ ${QNAME} ${QMANAGER}&lt;BR /&gt;&lt;BR /&gt;in shell to help you out with suitable shell code(s).&lt;BR /&gt;&lt;BR /&gt;hth.</description>
      <pubDate>Wed, 16 Nov 2005 04:13:35 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/script-issue/m-p/4940850#M102778</guid>
      <dc:creator>Muthukumar_5</dc:creator>
      <dc:date>2005-11-16T04:13:35Z</dc:date>
    </item>
    <item>
      <title>Re: Script ISSUE</title>
      <link>https://community.hpe.com/t5/operating-system-linux/script-issue/m-p/4940851#M102779</link>
      <description>file exactly copies under $DIRECTORY i.e /usr/received/&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 16 Nov 2005 04:55:01 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/script-issue/m-p/4940851#M102779</guid>
      <dc:creator>Karthick K S</dc:creator>
      <dc:date>2005-11-16T04:55:01Z</dc:date>
    </item>
  </channel>
</rss>

