<?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: Easy one... in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/easy-one/m-p/3416414#M706960</link>
    <description>Hi Bobby,&lt;BR /&gt;&lt;BR /&gt;If it is a thing like link, file, directory, then you can test it with '-a'. If you want to be more specific like if the thing is a symbolic link (-h), or a directory (-d), use that specific option. 'man ksh'.&lt;BR /&gt;&lt;BR /&gt;#!/usr/bin/ksh&lt;BR /&gt;&lt;BR /&gt;myfunction()&lt;BR /&gt;{&lt;BR /&gt;your_commands&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;if [ -a /somedirectory ]&lt;BR /&gt;then&lt;BR /&gt;myfunction&lt;BR /&gt;else&lt;BR /&gt;echo "/somedirectory is missing"&lt;BR /&gt;fi&lt;BR /&gt;&lt;BR /&gt;-Sri</description>
    <pubDate>Fri, 05 Nov 2004 20:47:30 GMT</pubDate>
    <dc:creator>Sridhar Bhaskarla</dc:creator>
    <dc:date>2004-11-05T20:47:30Z</dc:date>
    <item>
      <title>Easy one...</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/easy-one/m-p/3416413#M706959</link>
      <description>Hi everyone,&lt;BR /&gt;&lt;BR /&gt;Easy one for ya.  How is the best way to have a script verify that something exists (like a directory, etc) before executing a set of commands?  Thanks</description>
      <pubDate>Fri, 05 Nov 2004 20:24:11 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/easy-one/m-p/3416413#M706959</guid>
      <dc:creator>TheJuiceman</dc:creator>
      <dc:date>2004-11-05T20:24:11Z</dc:date>
    </item>
    <item>
      <title>Re: Easy one...</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/easy-one/m-p/3416414#M706960</link>
      <description>Hi Bobby,&lt;BR /&gt;&lt;BR /&gt;If it is a thing like link, file, directory, then you can test it with '-a'. If you want to be more specific like if the thing is a symbolic link (-h), or a directory (-d), use that specific option. 'man ksh'.&lt;BR /&gt;&lt;BR /&gt;#!/usr/bin/ksh&lt;BR /&gt;&lt;BR /&gt;myfunction()&lt;BR /&gt;{&lt;BR /&gt;your_commands&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;if [ -a /somedirectory ]&lt;BR /&gt;then&lt;BR /&gt;myfunction&lt;BR /&gt;else&lt;BR /&gt;echo "/somedirectory is missing"&lt;BR /&gt;fi&lt;BR /&gt;&lt;BR /&gt;-Sri</description>
      <pubDate>Fri, 05 Nov 2004 20:47:30 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/easy-one/m-p/3416414#M706960</guid>
      <dc:creator>Sridhar Bhaskarla</dc:creator>
      <dc:date>2004-11-05T20:47:30Z</dc:date>
    </item>
    <item>
      <title>Re: Easy one...</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/easy-one/m-p/3416415#M706961</link>
      <description>Excellent!!! Thanks Sri!!!  Told you it was easy.  Just didn't know the easiest way to do it.</description>
      <pubDate>Fri, 05 Nov 2004 21:42:35 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/easy-one/m-p/3416415#M706961</guid>
      <dc:creator>TheJuiceman</dc:creator>
      <dc:date>2004-11-05T21:42:35Z</dc:date>
    </item>
  </channel>
</rss>

