<?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: Question of syntax in Operating System - Linux</title>
    <link>https://community.hpe.com/t5/operating-system-linux/question-of-syntax/m-p/4414158#M61381</link>
    <description>&amp;gt;Is the syntax shown above correct?&lt;BR /&gt;&lt;BR /&gt;A real shell has the "-n" option to check.&lt;BR /&gt;&lt;BR /&gt;Some comments:&lt;BR /&gt;df | grep &lt;REMOTE server=""&gt; &amp;gt; /dev/null&lt;BR /&gt;&lt;BR /&gt;You can remove the redirection with:&lt;BR /&gt;df | grep -q &lt;REMOTE server=""&gt;&lt;BR /&gt;&lt;BR /&gt;echo not successful &amp;gt;&amp;gt; /tmp/make_net_backup.log &amp;amp;&amp;amp; mount -a&lt;BR /&gt;&lt;BR /&gt;Any reason you are using "&amp;amp;&amp;amp;" here?  Why would an error in writing to your log keep you from trying to mount?&lt;/REMOTE&gt;&lt;/REMOTE&gt;</description>
    <pubDate>Sat, 09 May 2009 20:36:19 GMT</pubDate>
    <dc:creator>Dennis Handly</dc:creator>
    <dc:date>2009-05-09T20:36:19Z</dc:date>
    <item>
      <title>Question of syntax</title>
      <link>https://community.hpe.com/t5/operating-system-linux/question-of-syntax/m-p/4414156#M61379</link>
      <description>Hi there --&lt;BR /&gt;&lt;BR /&gt;The code listed below is an excerpt from a script that I am writing. The goal is to verify that a directory on a remote server is available to the local system. If that is not the case, a log file is written, and all filesystems that were previous unmounted, are remounted on the local system.&lt;BR /&gt;&lt;BR /&gt;###############################################&lt;BR /&gt;# Unmount all NFS mounts prior to the archive process.&lt;BR /&gt;umount -a -t nfs&lt;BR /&gt;&lt;BR /&gt;# Mount the remote directory (NFS) prior to running the make_net_recovery script.&lt;BR /&gt;# Make sure there is a &lt;REMOTE server=""&gt; folder located in the /mnt directory. If it is&lt;BR /&gt;# not already there, create one. &lt;BR /&gt;mount &lt;REMOTE server=""&gt;:/&lt;LOCAL system=""&gt; /mnt/&lt;REMOTE server=""&gt;&lt;BR /&gt;&lt;BR /&gt;# Verify the remote directory (NFS) is available. This directory is needed&lt;BR /&gt;# as it is the destination for the iso images. If it is not available, stop&lt;BR /&gt;# here, and write the results to a log file.&lt;BR /&gt;df |grep &lt;REMOTE server=""&gt; &amp;gt; /dev/null&lt;BR /&gt;RC=$?&lt;BR /&gt;echo $RC&lt;BR /&gt;&lt;BR /&gt;if [ ${RC} -eq 0 ]&lt;BR /&gt;then&lt;BR /&gt;echo successful&lt;BR /&gt;else&lt;BR /&gt;echo not successful &amp;gt;&amp;gt; /tmp/make_net_backup.log &amp;amp;&amp;amp; mount -a&lt;BR /&gt;exit&lt;BR /&gt;fi&lt;BR /&gt;###############################################&lt;BR /&gt;&lt;BR /&gt;Is the syntax shown above correct? Thanks.&lt;/REMOTE&gt;&lt;/REMOTE&gt;&lt;/LOCAL&gt;&lt;/REMOTE&gt;&lt;/REMOTE&gt;</description>
      <pubDate>Wed, 06 May 2009 11:25:54 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/question-of-syntax/m-p/4414156#M61379</guid>
      <dc:creator>Andrew Kaplan</dc:creator>
      <dc:date>2009-05-06T11:25:54Z</dc:date>
    </item>
    <item>
      <title>Re: Question of syntax</title>
      <link>https://community.hpe.com/t5/operating-system-linux/question-of-syntax/m-p/4414157#M61380</link>
      <description>&lt;!--!*#--&gt;&amp;gt; Is the syntax shown above correct?&lt;BR /&gt;&lt;BR /&gt;Why not run the script, and get the opinion&lt;BR /&gt;of the shell, which is the only opinion which&lt;BR /&gt;matters?</description>
      <pubDate>Wed, 06 May 2009 12:24:06 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/question-of-syntax/m-p/4414157#M61380</guid>
      <dc:creator>Steven Schweda</dc:creator>
      <dc:date>2009-05-06T12:24:06Z</dc:date>
    </item>
    <item>
      <title>Re: Question of syntax</title>
      <link>https://community.hpe.com/t5/operating-system-linux/question-of-syntax/m-p/4414158#M61381</link>
      <description>&amp;gt;Is the syntax shown above correct?&lt;BR /&gt;&lt;BR /&gt;A real shell has the "-n" option to check.&lt;BR /&gt;&lt;BR /&gt;Some comments:&lt;BR /&gt;df | grep &lt;REMOTE server=""&gt; &amp;gt; /dev/null&lt;BR /&gt;&lt;BR /&gt;You can remove the redirection with:&lt;BR /&gt;df | grep -q &lt;REMOTE server=""&gt;&lt;BR /&gt;&lt;BR /&gt;echo not successful &amp;gt;&amp;gt; /tmp/make_net_backup.log &amp;amp;&amp;amp; mount -a&lt;BR /&gt;&lt;BR /&gt;Any reason you are using "&amp;amp;&amp;amp;" here?  Why would an error in writing to your log keep you from trying to mount?&lt;/REMOTE&gt;&lt;/REMOTE&gt;</description>
      <pubDate>Sat, 09 May 2009 20:36:19 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/question-of-syntax/m-p/4414158#M61381</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2009-05-09T20:36:19Z</dc:date>
    </item>
  </channel>
</rss>

