<?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 job in Operating System - Linux</title>
    <link>https://community.hpe.com/t5/operating-system-linux/cron-job/m-p/4238657#M62433</link>
    <description>did you schedule the script to run with the -c flag and add an "exit" at the end of the script?&lt;BR /&gt;&lt;BR /&gt;e.g. crontab&lt;BR /&gt;* * * * * script -c "test.sh" output.log&lt;BR /&gt;&lt;BR /&gt;last line of test.sh should be "exit".</description>
    <pubDate>Mon, 25 Aug 2008 23:36:39 GMT</pubDate>
    <dc:creator>Wilfred Chau_1</dc:creator>
    <dc:date>2008-08-25T23:36:39Z</dc:date>
    <item>
      <title>cron job</title>
      <link>https://community.hpe.com/t5/operating-system-linux/cron-job/m-p/4238655#M62431</link>
      <description>Hi, &lt;BR /&gt;&lt;BR /&gt;i have a shell scirpt which captures the output of a command using "script" command. i would like to run this shell script using cron job and this is not working as shell script is running a command using script command which i believe run the command in different shell. &lt;BR /&gt;&lt;BR /&gt;is there a work around this problem? how could i run the shell script using cron?&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;Chakri</description>
      <pubDate>Tue, 22 Jul 2008 20:13:25 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/cron-job/m-p/4238655#M62431</guid>
      <dc:creator>chakri</dc:creator>
      <dc:date>2008-07-22T20:13:25Z</dc:date>
    </item>
    <item>
      <title>Re: cron job</title>
      <link>https://community.hpe.com/t5/operating-system-linux/cron-job/m-p/4238656#M62432</link>
      <description>hey&lt;BR /&gt;&lt;BR /&gt;source your profile at the begin of your script, so that you have not the standard cron shell. e.g. you set the PATH env var in your profile etc..&lt;BR /&gt;&lt;BR /&gt;to source your profile:&lt;BR /&gt;. /home/user/.profile&lt;BR /&gt;&lt;BR /&gt;it would be helpful if you could poste more detail about the error of the script and also the script&lt;BR /&gt;&lt;BR /&gt;regards</description>
      <pubDate>Tue, 22 Jul 2008 21:31:28 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/cron-job/m-p/4238656#M62432</guid>
      <dc:creator>Oviwan</dc:creator>
      <dc:date>2008-07-22T21:31:28Z</dc:date>
    </item>
    <item>
      <title>Re: cron job</title>
      <link>https://community.hpe.com/t5/operating-system-linux/cron-job/m-p/4238657#M62433</link>
      <description>did you schedule the script to run with the -c flag and add an "exit" at the end of the script?&lt;BR /&gt;&lt;BR /&gt;e.g. crontab&lt;BR /&gt;* * * * * script -c "test.sh" output.log&lt;BR /&gt;&lt;BR /&gt;last line of test.sh should be "exit".</description>
      <pubDate>Mon, 25 Aug 2008 23:36:39 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/cron-job/m-p/4238657#M62433</guid>
      <dc:creator>Wilfred Chau_1</dc:creator>
      <dc:date>2008-08-25T23:36:39Z</dc:date>
    </item>
  </channel>
</rss>

