title: autorep command(belongs to autosys) not executing in crontab. Why?
body: <p>Below is my cron entry:</p>
  
  <pre><code>#!/bin/bash
  09 01 * * * /home/c/charlesp/jobs.sh &gt; /home/c/charlesp/jobs1.log 2&gt;&amp;1
  </code></pre>
  
  <p>which gives me only the error output, but not the actual output for which the script is written. The script is working fine and giving desired output when it is executed directly, but not in cron. When it is running in crontab, the error given is below. Please help. The errors are only coming when I run them in cron; not outside of cron.</p>
  
  <p>Errors:</p>
  
  <p>1.When i give autorep command directly in the script:</p>
  
  <pre><code>/home/c/charlesp/jobs.sh: line 3: autorep: command not found
  </code></pre>
  
  <p>2.When i give autorep command along with absolute path in the script:</p>
  
  <pre><code>/opt/CA/WorkloadAutomationAE/autosys/bin/autorep: error while loading shared libraries: libascmn.so: cannot open shared object file: No such file or directory
  </code></pre>
  
  <p>My script is below:</p>
  
  <p>Only autorep command:</p>
  
  <pre><code>#!/usr/local/bin/bash
  autorep -j ALL -L0 | grep -w RU &gt; /home/c/charlesp/jobs.txt
  </code></pre>
  
  <p>With absolute path :</p>
  
  <pre><code>#!/usr/local/bin/bash
  /opt/CA/WorkloadAutomationAE/autosys/bin/autorep -j ALL -L0 | grep -w RU &gt; /home/c/charlesp/jobs.txt
  </code></pre>