<?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: cron in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/cron/m-p/3566055#M227345</link>
    <description>Is it that what you intended?&lt;BR /&gt;It says that anything following an unascaped % will be sent to command's stdin&lt;BR /&gt;(similar to a here file, I would gather).&lt;BR /&gt; &lt;BR /&gt;If your command line gets that long that it is getting hard to read I'd say it's time for a wrapper script as the others have replied.&lt;BR /&gt;Also think about your poor fellow admins&lt;BR /&gt;(probably some DBA who are not too familiar with Unix Shell "line noise") who require to comprehend your cronjobs in your absence.&lt;BR /&gt;</description>
    <pubDate>Mon, 20 Jun 2005 06:28:47 GMT</pubDate>
    <dc:creator>Ralph Grothe</dc:creator>
    <dc:date>2005-06-20T06:28:47Z</dc:date>
    <item>
      <title>cron</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cron/m-p/3566051#M227341</link>
      <description>I want to submit task by crontab. When the command exceed one line, it doesn't work by using %. Can anyone present one cron sample file which one command exceed one line?</description>
      <pubDate>Fri, 17 Jun 2005 09:17:24 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cron/m-p/3566051#M227341</guid>
      <dc:creator>mtang</dc:creator>
      <dc:date>2005-06-17T09:17:24Z</dc:date>
    </item>
    <item>
      <title>Re: cron</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cron/m-p/3566052#M227342</link>
      <description>simply, you can pack your task into a shortname shell script, then submit by crontab.</description>
      <pubDate>Mon, 20 Jun 2005 05:24:05 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cron/m-p/3566052#M227342</guid>
      <dc:creator>Matthew_50</dc:creator>
      <dc:date>2005-06-20T05:24:05Z</dc:date>
    </item>
    <item>
      <title>Re: cron</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cron/m-p/3566053#M227343</link>
      <description>You can try with example as,&lt;BR /&gt;&lt;BR /&gt;* * * * * echo "hai" | awk '{ print $1 }' | sed 's/ //g' | awk '{ print $1 } | wc -l | awk '{ print $1 }' | sed 's/ //g' | awk&lt;BR /&gt; '{ print $1 }' 1&amp;gt;&amp;gt;/tmp/test.log 2&amp;gt;&amp;amp;1&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Is this you want or want to execute two commands one by one.&lt;BR /&gt;&lt;BR /&gt;If so then try as,&lt;BR /&gt;&lt;BR /&gt;* * * * * echo "hai";who 1&amp;gt;/tmp/test.log 2&amp;gt;&amp;amp;1&lt;BR /&gt;&lt;BR /&gt;It is always better to put this one shell script and give execution permission. IT will be executed and log file is updated.&lt;BR /&gt;&lt;BR /&gt;hth.</description>
      <pubDate>Mon, 20 Jun 2005 05:34:44 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cron/m-p/3566053#M227343</guid>
      <dc:creator>Muthukumar_5</dc:creator>
      <dc:date>2005-06-20T05:34:44Z</dc:date>
    </item>
    <item>
      <title>Re: cron</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cron/m-p/3566054#M227344</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;I think it's difficult to see this problem because a script usually can be created to customize commands and operations. Then insert the script in the sixth column of the crontab.&lt;BR /&gt;&lt;BR /&gt;Best regards,&lt;BR /&gt;Fabio</description>
      <pubDate>Mon, 20 Jun 2005 05:52:25 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cron/m-p/3566054#M227344</guid>
      <dc:creator>Fabio Ettore</dc:creator>
      <dc:date>2005-06-20T05:52:25Z</dc:date>
    </item>
    <item>
      <title>Re: cron</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cron/m-p/3566055#M227345</link>
      <description>Is it that what you intended?&lt;BR /&gt;It says that anything following an unascaped % will be sent to command's stdin&lt;BR /&gt;(similar to a here file, I would gather).&lt;BR /&gt; &lt;BR /&gt;If your command line gets that long that it is getting hard to read I'd say it's time for a wrapper script as the others have replied.&lt;BR /&gt;Also think about your poor fellow admins&lt;BR /&gt;(probably some DBA who are not too familiar with Unix Shell "line noise") who require to comprehend your cronjobs in your absence.&lt;BR /&gt;</description>
      <pubDate>Mon, 20 Jun 2005 06:28:47 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cron/m-p/3566055#M227345</guid>
      <dc:creator>Ralph Grothe</dc:creator>
      <dc:date>2005-06-20T06:28:47Z</dc:date>
    </item>
  </channel>
</rss>

