<?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 Adding cron job from remote server in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/adding-cron-job-from-remote-server/m-p/6153969#M496053</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tried adding a cron job from remote server, but problem came with "*" symbol mentioned in the cron job. i used below command&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;ssh -q abc "echo "00 08 28 * * /usr/local/scripts/syscheck.sh" &amp;gt;&amp;gt; /var/spool/cron/crontabs/root"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;but it end up with an entry in crontab, where the whole list of files were there in place of "*". &amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please help me in this.&lt;/P&gt;</description>
    <pubDate>Wed, 31 Jul 2013 10:50:32 GMT</pubDate>
    <dc:creator>Vishu</dc:creator>
    <dc:date>2013-07-31T10:50:32Z</dc:date>
    <item>
      <title>Adding cron job from remote server</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/adding-cron-job-from-remote-server/m-p/6153969#M496053</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tried adding a cron job from remote server, but problem came with "*" symbol mentioned in the cron job. i used below command&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;ssh -q abc "echo "00 08 28 * * /usr/local/scripts/syscheck.sh" &amp;gt;&amp;gt; /var/spool/cron/crontabs/root"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;but it end up with an entry in crontab, where the whole list of files were there in place of "*". &amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please help me in this.&lt;/P&gt;</description>
      <pubDate>Wed, 31 Jul 2013 10:50:32 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/adding-cron-job-from-remote-server/m-p/6153969#M496053</guid>
      <dc:creator>Vishu</dc:creator>
      <dc:date>2013-07-31T10:50:32Z</dc:date>
    </item>
    <item>
      <title>Re: Adding cron job from remote server with ssh</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/adding-cron-job-from-remote-server/m-p/6154037#M496054</link>
      <description>&lt;P&gt;&amp;gt;ssh -q abc "echo "00 08 28 * * /usr/local/scripts/syscheck.sh" &amp;gt;&amp;gt; /var/spool/cron/crontabs/root"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Your problem is in quoting.&amp;nbsp; You're trying to do nested quotes which the shell interprets differently.&amp;nbsp; Try:&lt;/P&gt;&lt;P&gt;ssh -q abc "echo '00 08 28 * * /usr/local/scripts/syscheck.sh' &amp;gt;&amp;gt; /var/spool/cron/crontabs/root"&lt;/P&gt;</description>
      <pubDate>Wed, 31 Jul 2013 11:50:30 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/adding-cron-job-from-remote-server/m-p/6154037#M496054</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2013-07-31T11:50:30Z</dc:date>
    </item>
  </channel>
</rss>

