<?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: Simple script but can't get it to work in Operating System - Linux</title>
    <link>https://community.hpe.com/t5/operating-system-linux/simple-script-but-can-t-get-it-to-work/m-p/4970808#M68018</link>
    <description>Trying to enter the door with new script (special edition for Charles):&lt;BR /&gt;&lt;BR /&gt;#!/bin/bash&lt;BR /&gt;/usr/bin/perl -e 'print "Changetime:".localtime((stat("$ARGV[0]"))[9])' $1&lt;BR /&gt;&lt;BR /&gt;Regards</description>
    <pubDate>Thu, 30 Mar 2006 11:19:31 GMT</pubDate>
    <dc:creator>Sergejs Svitnevs</dc:creator>
    <dc:date>2006-03-30T11:19:31Z</dc:date>
    <item>
      <title>Simple script but can't get it to work</title>
      <link>https://community.hpe.com/t5/operating-system-linux/simple-script-but-can-t-get-it-to-work/m-p/4970805#M68015</link>
      <description>This is the entire script&lt;BR /&gt;&lt;BR /&gt;#!/bin/bash&lt;BR /&gt;#/usr/bin/perl -e 'print "Changetime:".localtime((stat("$1"))[9])'&lt;BR /&gt;&lt;BR /&gt;I simply want to type in the name and feed it a path and file neme for it to report on.  If you harde code the $1 with a file name it works fine. Should you enter "# script /tmp/thisfile" it doesn't do the substituion and returns &lt;BR /&gt;&lt;BR /&gt;Changetime:Wed Dec 31 19:00:00 1969   &lt;BR /&gt;&lt;BR /&gt;which is not correct.&lt;BR /&gt;&lt;BR /&gt;Quick points!</description>
      <pubDate>Thu, 30 Mar 2006 08:34:08 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/simple-script-but-can-t-get-it-to-work/m-p/4970805#M68015</guid>
      <dc:creator>Charles Holland</dc:creator>
      <dc:date>2006-03-30T08:34:08Z</dc:date>
    </item>
    <item>
      <title>Re: Simple script but can't get it to work</title>
      <link>https://community.hpe.com/t5/operating-system-linux/simple-script-but-can-t-get-it-to-work/m-p/4970806#M68016</link>
      <description>#!/bin/bash&lt;BR /&gt;ENV_TEST="$1"; export ENV_TEST;&lt;BR /&gt;/usr/bin/perl -e 'print "Changetime:".localtime((stat("$ENV{ENV_TEST}"))[9])'&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Regards</description>
      <pubDate>Thu, 30 Mar 2006 09:16:29 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/simple-script-but-can-t-get-it-to-work/m-p/4970806#M68016</guid>
      <dc:creator>Sergejs Svitnevs</dc:creator>
      <dc:date>2006-03-30T09:16:29Z</dc:date>
    </item>
    <item>
      <title>Re: Simple script but can't get it to work</title>
      <link>https://community.hpe.com/t5/operating-system-linux/simple-script-but-can-t-get-it-to-work/m-p/4970807#M68017</link>
      <description>Sergejs thanks for the reply.  This is my first attempt at working in the bash shell.  &lt;BR /&gt;&lt;BR /&gt;From your reply it looks like you have to set it up as an environment variable before you can feed it to the script?  I am presuming that the $ENV is some type of command that examines the environment, it then finds the variable set, and I have just fed the variable what I want it to look for so it does the substitution.&lt;BR /&gt;&lt;BR /&gt;Is that anywhere correct?  Isn't that like going around the corner to enter the door you're standing in front of?</description>
      <pubDate>Thu, 30 Mar 2006 09:58:18 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/simple-script-but-can-t-get-it-to-work/m-p/4970807#M68017</guid>
      <dc:creator>Charles Holland</dc:creator>
      <dc:date>2006-03-30T09:58:18Z</dc:date>
    </item>
    <item>
      <title>Re: Simple script but can't get it to work</title>
      <link>https://community.hpe.com/t5/operating-system-linux/simple-script-but-can-t-get-it-to-work/m-p/4970808#M68018</link>
      <description>Trying to enter the door with new script (special edition for Charles):&lt;BR /&gt;&lt;BR /&gt;#!/bin/bash&lt;BR /&gt;/usr/bin/perl -e 'print "Changetime:".localtime((stat("$ARGV[0]"))[9])' $1&lt;BR /&gt;&lt;BR /&gt;Regards</description>
      <pubDate>Thu, 30 Mar 2006 11:19:31 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/simple-script-but-can-t-get-it-to-work/m-p/4970808#M68018</guid>
      <dc:creator>Sergejs Svitnevs</dc:creator>
      <dc:date>2006-03-30T11:19:31Z</dc:date>
    </item>
    <item>
      <title>Re: Simple script but can't get it to work</title>
      <link>https://community.hpe.com/t5/operating-system-linux/simple-script-but-can-t-get-it-to-work/m-p/4970809#M68019</link>
      <description>Thanks for your help.  First script worked fine.  It just seemed that it was going the long way around to get something done.&lt;BR /&gt;&lt;BR /&gt;Thanks again</description>
      <pubDate>Thu, 30 Mar 2006 12:00:45 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/simple-script-but-can-t-get-it-to-work/m-p/4970809#M68019</guid>
      <dc:creator>Charles Holland</dc:creator>
      <dc:date>2006-03-30T12:00:45Z</dc:date>
    </item>
  </channel>
</rss>

