<?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 - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/cron-job/m-p/3437876#M206809</link>
    <description>What happens if you launch your script with nohup ? (I mean "if not attached to a terminal")&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;&lt;BR /&gt;Fred&lt;BR /&gt;</description>
    <pubDate>Tue, 07 Dec 2004 04:43:11 GMT</pubDate>
    <dc:creator>Fred Ruffet</dc:creator>
    <dc:date>2004-12-07T04:43:11Z</dc:date>
    <item>
      <title>Cron job</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cron-job/m-p/3437869#M206802</link>
      <description>Hi All, &lt;BR /&gt;&lt;BR /&gt;I have a script called run_sftp for transfering a file to another server.The script run_sftp will call a script called sftp. sftp script is using expect instead shell.&lt;BR /&gt;&lt;BR /&gt;When I run it manually, it was running perfectly. But when run it through cronjob, it is not running fine. Nothing on cron log, but the file can not be transfered.&lt;BR /&gt;&lt;BR /&gt;Is it the issue with the environment? How can I make it run through crontab? Pls help. High score will be given. &lt;BR /&gt;&lt;BR /&gt;Thanks and Best Regards,&lt;BR /&gt;Negara&lt;BR /&gt;&lt;BR /&gt;# crontab -l|grep sftp&lt;BR /&gt;37 3 * * * /opt/sapapp/L6A/SC/scripts/transfer/run_sftp &amp;gt; /tmp/sftp 2&amp;gt;&amp;amp;1&lt;BR /&gt;&lt;BR /&gt;#more /var/adm/cron/log&lt;BR /&gt;&amp;gt;  CMD: /opt/sapapp/L6A/SC/scripts/transfer/run_sftp &amp;gt; /tmp/sftp 2&amp;gt;&amp;amp;1&lt;BR /&gt;&amp;gt;  root 16884 c Tue Dec  7 03:37:00 EST 2004&lt;BR /&gt;&amp;lt;  root 16884 c Tue Dec  7 03:37:15 EST 2004&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 07 Dec 2004 03:51:52 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cron-job/m-p/3437869#M206802</guid>
      <dc:creator>Dewa Negara_4</dc:creator>
      <dc:date>2004-12-07T03:51:52Z</dc:date>
    </item>
    <item>
      <title>Re: Cron job</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cron-job/m-p/3437870#M206803</link>
      <description>Hi Dewa,&lt;BR /&gt;&lt;BR /&gt;usually if you can run manually but not through cron it goes back to environment initialisation. Cron does not run profile therefore it's up to you to initialise the variables in the script.&lt;BR /&gt;&lt;BR /&gt;we have a profile.cron for cron processing.&lt;BR /&gt;a script run through cron would be wrapped with another script to initialise required variables.&lt;BR /&gt;&lt;BR /&gt;Regards&lt;BR /&gt;Jean-Luc</description>
      <pubDate>Tue, 07 Dec 2004 03:59:44 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cron-job/m-p/3437870#M206803</guid>
      <dc:creator>Jean-Luc Oudart</dc:creator>
      <dc:date>2004-12-07T03:59:44Z</dc:date>
    </item>
    <item>
      <title>Re: Cron job</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cron-job/m-p/3437871#M206804</link>
      <description>Hi,&lt;BR /&gt;it is probably the missing environment. Try first to look for clues in the mail for the user who executes the cron job.&lt;BR /&gt; &lt;BR /&gt;regards,&lt;BR /&gt;John K.</description>
      <pubDate>Tue, 07 Dec 2004 04:00:31 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cron-job/m-p/3437871#M206804</guid>
      <dc:creator>john korterman</dc:creator>
      <dc:date>2004-12-07T04:00:31Z</dc:date>
    </item>
    <item>
      <title>Re: Cron job</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cron-job/m-p/3437872#M206805</link>
      <description>hi,&lt;BR /&gt;&lt;BR /&gt;when you are running script ,you are giving the user name &amp;amp; passwd manually?&lt;BR /&gt;&lt;BR /&gt;if it is like that,just make a file .netrc in your users home directory(who is running this script) with the contents like following.(change the entries as per your server .change ip address ,user name which comes after login and passwd)&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;machine 192.99.3.3 login dba password india&lt;BR /&gt;machine 172.25.2.2 login  sa password jk123&lt;BR /&gt;machine 172.25.3.50 login ora1 password jk456&lt;BR /&gt;&lt;BR /&gt;then run cron&lt;BR /&gt;&lt;BR /&gt;regds,</description>
      <pubDate>Tue, 07 Dec 2004 04:06:37 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cron-job/m-p/3437872#M206805</guid>
      <dc:creator>bhavin asokan</dc:creator>
      <dc:date>2004-12-07T04:06:37Z</dc:date>
    </item>
    <item>
      <title>Re: Cron job</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cron-job/m-p/3437873#M206806</link>
      <description>Hi All, &lt;BR /&gt;&lt;BR /&gt;Thanks alot. I am not using .netrc, but using expect script to transfer the file without public/private keys. I attach the script below. I have tried to change the environment, but still can not solve the issue. Pls help. Thanks alot.&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Dewa&lt;BR /&gt;&lt;BR /&gt;[root@prod:/opt/sapapp/L6A/SC/scripts/transfer]&lt;BR /&gt;# ll&lt;BR /&gt;total 10&lt;BR /&gt;-rw-r--r--   1 root       sys              9 Dec  1 21:55 .password&lt;BR /&gt;-rw-r--r--   1 root       sys             97 Dec  7 02:22 batchFile&lt;BR /&gt;-rwx------   1 root       sys            122 Dec  7 04:03 run_sftp&lt;BR /&gt;-rwx------   1 root       sys            495 Dec  2 02:03 sftp&lt;BR /&gt;&lt;BR /&gt;[root@prod:/opt/sapapp/L6A/SC/scripts/transfer]&lt;BR /&gt;# more run_sftp&lt;BR /&gt;#!/usr/bin/sh -x&lt;BR /&gt;&lt;BR /&gt;. /opt/soeg/bin/setup_env.sh /opt/soeg/conf/env_vars.conf&lt;BR /&gt;cd /opt/sapapp/L6A/SC/scripts/transfer&lt;BR /&gt;./sftp&lt;BR /&gt;&lt;BR /&gt;[root@prod:/opt/sapapp/L6A/SC/scripts/transfer]&lt;BR /&gt;# more sftp&lt;BR /&gt;#!/usr/local/bin/expect&lt;BR /&gt;&lt;BR /&gt;# Initialisation&lt;BR /&gt;set authFile "/opt/sapapp/L6A/SC/scripts/transfer/.password"&lt;BR /&gt;&lt;BR /&gt;# Check the authorisation file exists&lt;BR /&gt;if {![file exists $authFile]} {  ;# Does file exist&lt;BR /&gt; send_user "$authFile does not exist; aborting\n"&lt;BR /&gt; exit 1&lt;BR /&gt;}&lt;BR /&gt;set fileFD [open $authFile r]                   ;# Open the auth file&lt;BR /&gt;gets $fileFD authLine                           ;# Read in 1 line to authLine&lt;BR /&gt;close $fileFD&lt;BR /&gt;&lt;BR /&gt;# Transfer file(s)&lt;BR /&gt;spawn sftp -b batchFile importve@&lt;A href="http://www.importve.com" target="_blank"&gt;www.importve.com&lt;/A&gt;&lt;BR /&gt;expect "password:"&lt;BR /&gt;send "$authLine\n";&lt;BR /&gt;interact&lt;BR /&gt;</description>
      <pubDate>Tue, 07 Dec 2004 04:17:34 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cron-job/m-p/3437873#M206806</guid>
      <dc:creator>Dewa Negara_4</dc:creator>
      <dc:date>2004-12-07T04:17:34Z</dc:date>
    </item>
    <item>
      <title>Re: Cron job</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cron-job/m-p/3437874#M206807</link>
      <description>What is content of /tmp/sftp ?&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;&lt;BR /&gt;Fred&lt;BR /&gt;</description>
      <pubDate>Tue, 07 Dec 2004 04:30:20 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cron-job/m-p/3437874#M206807</guid>
      <dc:creator>Fred Ruffet</dc:creator>
      <dc:date>2004-12-07T04:30:20Z</dc:date>
    </item>
    <item>
      <title>Re: Cron job</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cron-job/m-p/3437875#M206808</link>
      <description>Hi Fred, &lt;BR /&gt;&lt;BR /&gt;1) Content of /tmp/sftp when running trhough crontab:&lt;BR /&gt;&lt;BR /&gt;[root@prod:/var/adm]&lt;BR /&gt;# more /tmp/sftp&lt;BR /&gt;+ . /opt/soeg/bin/setup_env.sh /opt/soeg/conf/env_vars.conf&lt;BR /&gt;+ [[ /opt/soeg/conf/env_vars.conf = -help ]]&lt;BR /&gt;+ [[ 1 != 1 ]]&lt;BR /&gt;+ [[ ! -a /opt/soeg/conf/env_vars.conf ]]&lt;BR /&gt;+ cat /opt/soeg/conf/env_vars.conf&lt;BR /&gt;+ read -r Env_variable Value&lt;BR /&gt;+ export SOE=/opt/soeg&lt;BR /&gt;+ read -r Env_variable Value&lt;BR /&gt;+ export SOEG=/opt/soeg&lt;BR /&gt;+ read -r Env_variable Value&lt;BR /&gt;+ export SOEAPPINST=/usr/local/applications&lt;BR /&gt;+ read -r Env_variable Value&lt;BR /&gt;+ export SOEAPPCONF=/usr/local/applications/conf&lt;BR /&gt;+ read -r Env_variable Value&lt;BR /&gt;+ export SOESTARTSTOP=/usr/local/applications/startstop&lt;BR /&gt;+ read -r Env_variable Value&lt;BR /&gt;+ export SOEBIN=/opt/soeg/bin&lt;BR /&gt;+ read -r Env_variable Value&lt;BR /&gt;+ export SOEDOC=/opt/soeg/doc&lt;BR /&gt;+ read -r Env_variable Value&lt;BR /&gt;+ export SOECONF=/opt/soeg/conf&lt;BR /&gt;+ read -r Env_variable Value&lt;BR /&gt;+ export SOEINSTCONF=/opt/soeg/install/conf&lt;BR /&gt;+ read -r Env_variable Value&lt;BR /&gt;+ export SOELOG=/var/opt/soeg/log&lt;BR /&gt;+ read -r Env_variable Value&lt;BR /&gt;+ export SOERPT=/var/opt/soeg/rpt&lt;BR /&gt;+ read -r Env_variable Value&lt;BR /&gt;+ export SOEDATA=/opt/soeg/data&lt;BR /&gt;+ read -r Env_variable Value&lt;BR /&gt;+ export SOEBKUP=/var/opt/soeg/sys_snapshot&lt;BR /&gt;+ read -r Env_variable Value&lt;BR /&gt;+ export SOESEC=/opt/soeg/sectools&lt;BR /&gt;+ read -r Env_variable Value&lt;BR /&gt;+ export SOESECRPT=/var/opt/soeg/sectools/rpt&lt;BR /&gt;+ read -r Env_variable Value&lt;BR /&gt;+ export SAVENODE=/var/opt/soeg/savenode&lt;BR /&gt;+ read -r Env_variable Value&lt;BR /&gt;+ export BKP_LOG=/var/opt/soeg/log&lt;BR /&gt;+ read -r Env_variable Value&lt;BR /&gt;+ export RECOVERY=/opt/soeg/recovery&lt;BR /&gt;+ read -r Env_variable Value&lt;BR /&gt;+ export RECOVERYBIN=/opt/soeg/recovery/bin&lt;BR /&gt;+ read -r Env_variable Value&lt;BR /&gt;+ export RECOVERYLOG=/var/opt/soeg/recovery/log&lt;BR /&gt;+ read -r Env_variable Value&lt;BR /&gt;+ export RECOVERYRPT=/var/opt/soeg/recovery/rpt&lt;BR /&gt;+ read -r Env_variable Value&lt;BR /&gt;+ export RECOVERYDOC=/opt/soeg/recovery/doc&lt;BR /&gt;+ read -r Env_variable Value&lt;BR /&gt;+ export RECOVERYCONF=/opt/soeg/recovery/conf&lt;BR /&gt;+ read -r Env_variable Value&lt;BR /&gt;+ export RECOVERYDATA=/opt/soeg/recovery/data&lt;BR /&gt;+ read -r Env_variable Value&lt;BR /&gt;+ export PERF=/var/opt/perf&lt;BR /&gt;+ read -r Env_variable Value&lt;BR /&gt;+ export PERFLOG=/var/opt/perf/datafiles&lt;BR /&gt;+ read -r Env_variable Value&lt;BR /&gt;+ export SUPPORTW=/opt/soeg/supportw&lt;BR /&gt;+ read -r Env_variable Value&lt;BR /&gt;+ export SUPPORTWBIN=/opt/soeg/supportw/bin&lt;BR /&gt;+ read -r Env_variable Value&lt;BR /&gt;+ export SUPPORTWLOG=/var/opt/soeg/supportw/log&lt;BR /&gt;+ read -r Env_variable Value&lt;BR /&gt;+ export SUPPORTWRPT=/var/opt/soeg/supportw/rpt&lt;BR /&gt;+ read -r Env_variable Value&lt;BR /&gt;+ export SUPPORTWDOC=/opt/soeg/supportw/doc&lt;BR /&gt;+ read -r Env_variable Value&lt;BR /&gt;+ export SUPPORTWCONF=/opt/soeg/supportw/conf&lt;BR /&gt;+ read -r Env_variable Value&lt;BR /&gt;+ export SUPPORTWDATA=/opt/soeg/supportw/data&lt;BR /&gt;+ read -r Env_variable Value&lt;BR /&gt;+ export SYSMGR=/usr/local/sysmgr&lt;BR /&gt;+ read -r Env_variable Value&lt;BR /&gt;+ export SOEINST=/opt/soeg/install&lt;BR /&gt;+ read -r Env_variable Value&lt;BR /&gt;+ export SOEINSTBIN=/opt/soeg/install/bin&lt;BR /&gt;+ read -r Env_variable Value&lt;BR /&gt;+ export SOEINSTLOG=/var/opt/soeg/install/log&lt;BR /&gt;+ read -r Env_variable Value&lt;BR /&gt;+ export APPSTDS=/usr/local/applications/app_stds&lt;BR /&gt;+ read -r Env_variable Value&lt;BR /&gt;+ export CONTROLM=/opt/ctms/ctm&lt;BR /&gt;+ read -r Env_variable Value&lt;BR /&gt;+ export SYBASE=/opt/ctms/ctm/sybase&lt;BR /&gt;+ read -r Env_variable Value&lt;BR /&gt;+ export DSLISTEN=CTRLM&lt;BR /&gt;+ read -r Env_variable Value&lt;BR /&gt;+ export DSQUERY=CTRLM&lt;BR /&gt;+ read -r Env_variable Value&lt;BR /&gt;+ export DSCONSOLE=CTRLM&lt;BR /&gt;+ read -r Env_variable Value&lt;BR /&gt;+ export CONTROLM_USER=ctms&lt;BR /&gt;+ read -r Env_variable Value&lt;BR /&gt;+ export CONTROLM_DATABASE=ctms&lt;BR /&gt;+ read -r Env_variable Value&lt;BR /&gt;+ export NDMAPICFG=/opt/cdirect/ndm/cfg/cliapi/ndmapi.cfg&lt;BR /&gt;+ read -r Env_variable Value&lt;BR /&gt;+ export NBBIN=/usr/openv/netbackup/bin&lt;BR /&gt;+ read -r Env_variable Value&lt;BR /&gt;+ export NBCONF=/usr/openv/netbackup/conf&lt;BR /&gt;+ read -r Env_variable Value&lt;BR /&gt;+ export NBLOG=/usr/openv/netbackup/logs/bp_notify&lt;BR /&gt;+ read -r Env_variable Value&lt;BR /&gt;+ cd /opt/sapapp/L6A/SC/scripts/transfer&lt;BR /&gt;+ ./sftp&lt;BR /&gt;spawn sftp -b batchFile importve@&lt;A href="http://www.importve.com" target="_blank"&gt;www.importve.com&lt;/A&gt;&lt;BR /&gt;spawn sftp -b batchFile importve@&lt;A href="http://www.importve.com" target="_blank"&gt;www.importve.com&lt;/A&gt;&lt;BR /&gt;spawn sftp -b batchFile importve@&lt;A href="http://www.importve.com" target="_blank"&gt;www.importve.com&lt;/A&gt;&lt;BR /&gt;spawn sftp -b batchFile importve@&lt;A href="http://www.importve.com" target="_blank"&gt;www.importve.com&lt;/A&gt;&lt;BR /&gt;spawn sftp -b batchFile importve@&lt;A href="http://www.importve.com" target="_blank"&gt;www.importve.com&lt;/A&gt;&lt;BR /&gt;spawn sftp -b batchFile importve@&lt;A href="http://www.importve.com" target="_blank"&gt;www.importve.com&lt;/A&gt;&lt;BR /&gt;spawn sftp -b batchFile importve@&lt;A href="http://www.importve.com" target="_blank"&gt;www.importve.com&lt;/A&gt;&lt;BR /&gt;spawn sftp -b batchFile importve@&lt;A href="http://www.importve.com" target="_blank"&gt;www.importve.com&lt;/A&gt;&lt;BR /&gt;spawn sftp -b batchFile importve@&lt;A href="http://www.importve.com" target="_blank"&gt;www.importve.com&lt;/A&gt;&lt;BR /&gt;spawn sftp -b batchFile importve@&lt;A href="http://www.importve.com" target="_blank"&gt;www.importve.com&lt;/A&gt;&lt;BR /&gt;spawn sftp -b batchFile importve@&lt;A href="http://www.importve.com" target="_blank"&gt;www.importve.com&lt;/A&gt;&lt;BR /&gt;spawn sftp -b batchFile importve@&lt;A href="http://www.importve.com" target="_blank"&gt;www.importve.com&lt;/A&gt;&lt;BR /&gt;spawn sftp -b batchFile importve@&lt;A href="http://www.importve.com" target="_blank"&gt;www.importve.com&lt;/A&gt;&lt;BR /&gt;spawn sftp -b batchFile importve@&lt;A href="http://www.importve.com" target="_blank"&gt;www.importve.com&lt;/A&gt;&lt;BR /&gt;spawn sftp -b batchFile importve@&lt;A href="http://www.importve.com" target="_blank"&gt;www.importve.com&lt;/A&gt;&lt;BR /&gt;spawn sftp -b batchFile importve@&lt;A href="http://www.importve.com" target="_blank"&gt;www.importve.com&lt;/A&gt;&lt;BR /&gt;spawn sftp -b batchFile importve@&lt;A href="http://www.importve.com" target="_blank"&gt;www.importve.com&lt;/A&gt;&lt;BR /&gt;spawn sftp -b batchFile importve@&lt;A href="http://www.importve.com" target="_blank"&gt;www.importve.com&lt;/A&gt;&lt;BR /&gt;spawn sftp -b batchFile importve@&lt;A href="http://www.importve.com" target="_blank"&gt;www.importve.com&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;spawn sftp -b batchFile importve@&lt;A href="http://www.importve.com" target="_blank"&gt;www.importve.com&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;spawn sftp -b batchFile importve@&lt;A href="http://www.importve.com" target="_blank"&gt;www.importve.com&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;spawn sftp -b batchFile importve@&lt;A href="http://www.importve.com" target="_blank"&gt;www.importve.com&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;spawn sftp -b batchFile importve@&lt;A href="http://www.importve.com" target="_blank"&gt;www.importve.com&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;spawn sftp -b batchFile importve@&lt;A href="http://www.importve.com" target="_blank"&gt;www.importve.com&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;spawn sftp -b batchFile importve@&lt;A href="http://www.importve.com" target="_blank"&gt;www.importve.com&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;spawn sftp -b batchFile importve@&lt;A href="http://www.importve.com" target="_blank"&gt;www.importve.com&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;spawn sftp -b batchFile importve@&lt;A href="http://www.importve.com" target="_blank"&gt;www.importve.com&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;spawn sftp -b batchFile importve@&lt;A href="http://www.importve.com" target="_blank"&gt;www.importve.com&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;spawn sftp -b batchFile importve@&lt;A href="http://www.importve.com" target="_blank"&gt;www.importve.com&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;spawn sftp -b batchFile importve@&lt;A href="http://www.importve.com" target="_blank"&gt;www.importve.com&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;spawn sftp -b batchFile importve@&lt;A href="http://www.importve.com" target="_blank"&gt;www.importve.com&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;spawn sftp -b batchFile importve@&lt;A href="http://www.importve.com" target="_blank"&gt;www.importve.com&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;spawn sftp -b batchFile importve@&lt;A href="http://www.importve.com" target="_blank"&gt;www.importve.com&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;spawn sftp -b batchFile importve@&lt;A href="http://www.importve.com" target="_blank"&gt;www.importve.com&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;spawn sftp -b batchFile importve@&lt;A href="http://www.importve.com" target="_blank"&gt;www.importve.com&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;spawn sftp -b batchFile importve@&lt;A href="http://www.importve.com" target="_blank"&gt;www.importve.com&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;spawn sftp -b batchFileymhung04&lt;BR /&gt;&lt;BR /&gt;2) Content of /tmp/sftp when running manually:&lt;BR /&gt;&lt;BR /&gt;[root@prod:/var/adm]&lt;BR /&gt;# more /tmp/sftp&lt;BR /&gt;+ . /opt/soeg/bin/setup_env.sh /opt/soeg/conf/env_vars.conf&lt;BR /&gt;+ [[ /opt/soeg/conf/env_vars.conf = -help ]]&lt;BR /&gt;+ [[ 1 != 1 ]]&lt;BR /&gt;+ [[ ! -a /opt/soeg/conf/env_vars.conf ]]&lt;BR /&gt;+ read -r Env_variable Value&lt;BR /&gt;+ cat /opt/soeg/conf/env_vars.conf&lt;BR /&gt;+ export SOE=/opt/soeg&lt;BR /&gt;+ read -r Env_variable Value&lt;BR /&gt;+ export SOEG=/opt/soeg&lt;BR /&gt;+ read -r Env_variable Value&lt;BR /&gt;+ export SOEAPPINST=/usr/local/applications&lt;BR /&gt;+ read -r Env_variable Value&lt;BR /&gt;+ export SOEAPPCONF=/usr/local/applications/conf&lt;BR /&gt;+ read -r Env_variable Value&lt;BR /&gt;+ export SOESTARTSTOP=/usr/local/applications/startstop&lt;BR /&gt;+ read -r Env_variable Value&lt;BR /&gt;+ export SOEBIN=/opt/soeg/bin&lt;BR /&gt;+ read -r Env_variable Value&lt;BR /&gt;+ export SOEDOC=/opt/soeg/doc&lt;BR /&gt;+ read -r Env_variable Value&lt;BR /&gt;+ export SOECONF=/opt/soeg/conf&lt;BR /&gt;+ read -r Env_variable Value&lt;BR /&gt;+ export SOEINSTCONF=/opt/soeg/install/conf&lt;BR /&gt;+ read -r Env_variable Value&lt;BR /&gt;+ export SOELOG=/var/opt/soeg/log&lt;BR /&gt;+ read -r Env_variable Value&lt;BR /&gt;+ export SOERPT=/var/opt/soeg/rpt&lt;BR /&gt;+ read -r Env_variable Value&lt;BR /&gt;+ export SOEDATA=/opt/soeg/data&lt;BR /&gt;+ read -r Env_variable Value&lt;BR /&gt;+ export SOEBKUP=/var/opt/soeg/sys_snapshot&lt;BR /&gt;+ read -r Env_variable Value&lt;BR /&gt;+ export SOESEC=/opt/soeg/sectools&lt;BR /&gt;+ read -r Env_variable Value&lt;BR /&gt;+ export SOESECRPT=/var/opt/soeg/sectools/rpt&lt;BR /&gt;+ read -r Env_variable Value&lt;BR /&gt;+ export SAVENODE=/var/opt/soeg/savenode&lt;BR /&gt;+ read -r Env_variable Value&lt;BR /&gt;+ export BKP_LOG=/var/opt/soeg/log&lt;BR /&gt;+ read -r Env_variable Value&lt;BR /&gt;+ export RECOVERY=/opt/soeg/recovery&lt;BR /&gt;+ read -r Env_variable Value&lt;BR /&gt;+ export RECOVERYBIN=/opt/soeg/recovery/bin&lt;BR /&gt;+ read -r Env_variable Value&lt;BR /&gt;+ export RECOVERYLOG=/var/opt/soeg/recovery/log&lt;BR /&gt;+ read -r Env_variable Value&lt;BR /&gt;+ export RECOVERYRPT=/var/opt/soeg/recovery/rpt&lt;BR /&gt;+ read -r Env_variable Value&lt;BR /&gt;+ export RECOVERYDOC=/opt/soeg/recovery/doc&lt;BR /&gt;+ read -r Env_variable Value&lt;BR /&gt;+ export RECOVERYCONF=/opt/soeg/recovery/conf&lt;BR /&gt;+ read -r Env_variable Value&lt;BR /&gt;+ export RECOVERYDATA=/opt/soeg/recovery/data&lt;BR /&gt;+ read -r Env_variable Value&lt;BR /&gt;+ export PERF=/var/opt/perf&lt;BR /&gt;+ read -r Env_variable Value&lt;BR /&gt;+ export PERFLOG=/var/opt/perf/datafiles&lt;BR /&gt;+ read -r Env_variable Value&lt;BR /&gt;+ export SUPPORTW=/opt/soeg/supportw&lt;BR /&gt;+ read -r Env_variable Value&lt;BR /&gt;+ export SUPPORTWBIN=/opt/soeg/supportw/bin&lt;BR /&gt;+ read -r Env_variable Value&lt;BR /&gt;+ export SUPPORTWLOG=/var/opt/soeg/supportw/log&lt;BR /&gt;+ read -r Env_variable Value&lt;BR /&gt;+ export SUPPORTWRPT=/var/opt/soeg/supportw/rpt&lt;BR /&gt;+ read -r Env_variable Value&lt;BR /&gt;+ export SUPPORTWDOC=/opt/soeg/supportw/doc&lt;BR /&gt;+ read -r Env_variable Value&lt;BR /&gt;+ export SUPPORTWCONF=/opt/soeg/supportw/conf&lt;BR /&gt;+ read -r Env_variable Value&lt;BR /&gt;+ export SUPPORTWDATA=/opt/soeg/supportw/data&lt;BR /&gt;+ read -r Env_variable Value&lt;BR /&gt;+ export SYSMGR=/usr/local/sysmgr&lt;BR /&gt;+ read -r Env_variable Value&lt;BR /&gt;+ export SOEINST=/opt/soeg/install&lt;BR /&gt;+ read -r Env_variable Value&lt;BR /&gt;+ export SOEINSTBIN=/opt/soeg/install/bin&lt;BR /&gt;+ read -r Env_variable Value&lt;BR /&gt;+ export SOEINSTLOG=/var/opt/soeg/install/log&lt;BR /&gt;+ read -r Env_variable Value&lt;BR /&gt;+ export APPSTDS=/usr/local/applications/app_stds&lt;BR /&gt;+ read -r Env_variable Value&lt;BR /&gt;+ export CONTROLM=/opt/ctms/ctm&lt;BR /&gt;+ read -r Env_variable Value&lt;BR /&gt;+ export SYBASE=/opt/ctms/ctm/sybase&lt;BR /&gt;+ read -r Env_variable Value&lt;BR /&gt;+ export DSLISTEN=CTRLM&lt;BR /&gt;+ read -r Env_variable Value&lt;BR /&gt;+ export DSQUERY=CTRLM&lt;BR /&gt;+ read -r Env_variable Value&lt;BR /&gt;+ export DSCONSOLE=CTRLM&lt;BR /&gt;+ read -r Env_variable Value&lt;BR /&gt;+ export CONTROLM_USER=ctms&lt;BR /&gt;+ read -r Env_variable Value&lt;BR /&gt;+ export CONTROLM_DATABASE=ctms&lt;BR /&gt;+ read -r Env_variable Value&lt;BR /&gt;+ export NDMAPICFG=/opt/cdirect/ndm/cfg/cliapi/ndmapi.cfg&lt;BR /&gt;+ read -r Env_variable Value&lt;BR /&gt;+ export NBBIN=/usr/openv/netbackup/bin&lt;BR /&gt;+ read -r Env_variable Value&lt;BR /&gt;+ export NBCONF=/usr/openv/netbackup/conf&lt;BR /&gt;+ read -r Env_variable Value&lt;BR /&gt;+ export NBLOG=/usr/openv/netbackup/logs/bp_notify&lt;BR /&gt;+ read -r Env_variable Value&lt;BR /&gt;+ cd /opt/sapapp/L6A/SC/scripts/transfer&lt;BR /&gt;+ ./sftp&lt;BR /&gt;spawn sftp -b batchFile importve@&lt;A href="http://www.importve.com" target="_blank"&gt;www.importve.com&lt;/A&gt;&lt;BR /&gt;Connecting to &lt;A href="http://www.importve.com..." target="_blank"&gt;www.importve.com...&lt;/A&gt;&lt;BR /&gt;importve@&lt;A href="http://www.importve.com's" target="_blank"&gt;www.importve.com's&lt;/A&gt; password:&lt;BR /&gt;sftp&amp;gt; lcd /opt/sapapp/L6A/SC/data/Venezuela/Purchases&lt;BR /&gt;sftp&amp;gt; cd /data/web/90558/www/sap/&lt;BR /&gt;sftp&amp;gt; put Purchase.txt&lt;BR /&gt;Uploading Purchase.txt to /data/web/90558/www/sap/Purchase.txt&lt;BR /&gt;Uploading Purchase.txt to /data/web/90558/www/sap/Purchase.txt&lt;BR /&gt;sftp&amp;gt; bye&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 07 Dec 2004 04:34:51 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cron-job/m-p/3437875#M206808</guid>
      <dc:creator>Dewa Negara_4</dc:creator>
      <dc:date>2004-12-07T04:34:51Z</dc:date>
    </item>
    <item>
      <title>Re: Cron job</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cron-job/m-p/3437876#M206809</link>
      <description>What happens if you launch your script with nohup ? (I mean "if not attached to a terminal")&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;&lt;BR /&gt;Fred&lt;BR /&gt;</description>
      <pubDate>Tue, 07 Dec 2004 04:43:11 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cron-job/m-p/3437876#M206809</guid>
      <dc:creator>Fred Ruffet</dc:creator>
      <dc:date>2004-12-07T04:43:11Z</dc:date>
    </item>
    <item>
      <title>Re: Cron job</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cron-job/m-p/3437877#M206810</link>
      <description>Hi Fred, &lt;BR /&gt;&lt;BR /&gt;I tried to use nohup, but again it was running well when run it manually, but not using cron. Contect of /tmp/sftp is exactly the same. &lt;BR /&gt;&lt;BR /&gt;[root@prod:/opt/sapapp/L6A/SC/scripts/transfer]&lt;BR /&gt;# crontab -l|grep sftp&lt;BR /&gt;54 4 * * * nohup /opt/sapapp/L6A/SC/scripts/transfer/run_sftp &amp;gt; /tmp/sftp 2&amp;gt;&amp;amp;1&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 07 Dec 2004 04:56:11 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cron-job/m-p/3437877#M206810</guid>
      <dc:creator>Dewa Negara_4</dc:creator>
      <dc:date>2004-12-07T04:56:11Z</dc:date>
    </item>
    <item>
      <title>Re: Cron job</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cron-job/m-p/3437878#M206811</link>
      <description>If it runs without a terminal, then it is an environment problem. Try to source your profile at begining of the script. Expect is probably missing a variable.&lt;BR /&gt;&lt;BR /&gt;add this line :&lt;BR /&gt;. $HOME/.profile&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;&lt;BR /&gt;Fred&lt;BR /&gt;</description>
      <pubDate>Tue, 07 Dec 2004 05:03:37 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cron-job/m-p/3437878#M206811</guid>
      <dc:creator>Fred Ruffet</dc:creator>
      <dc:date>2004-12-07T05:03:37Z</dc:date>
    </item>
    <item>
      <title>Re: Cron job</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cron-job/m-p/3437879#M206812</link>
      <description>hi,&lt;BR /&gt;&lt;BR /&gt;sorry i forgot to ask you.&lt;BR /&gt;you are having cron.allow or cron.deny files in your /var/adm/cron directory.if existing the cron.allow file should contain the user name by which you are running sftp and the cron.deny file should not.(cron.allow with some user name s will allow only that users to run the cron.)&lt;BR /&gt;&lt;BR /&gt;note:if cron.allow is there root entry should be must on that file.&lt;BR /&gt;&lt;BR /&gt;regds,&lt;BR /&gt;</description>
      <pubDate>Tue, 07 Dec 2004 05:04:37 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cron-job/m-p/3437879#M206812</guid>
      <dc:creator>bhavin asokan</dc:creator>
      <dc:date>2004-12-07T05:04:37Z</dc:date>
    </item>
    <item>
      <title>Re: Cron job</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cron-job/m-p/3437880#M206813</link>
      <description>Just to add on Fred's last post.&lt;BR /&gt;&lt;BR /&gt;If there is any interaction in the .profile, I would suggest you take a copy into a profile.con file and remove the interaction(s).&lt;BR /&gt;&lt;BR /&gt;Regards&lt;BR /&gt;Jean-Luc</description>
      <pubDate>Tue, 07 Dec 2004 06:57:02 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cron-job/m-p/3437880#M206813</guid>
      <dc:creator>Jean-Luc Oudart</dc:creator>
      <dc:date>2004-12-07T06:57:02Z</dc:date>
    </item>
    <item>
      <title>Re: Cron job</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cron-job/m-p/3437881#M206814</link>
      <description>Hi, we too had the same problem. We are through now.&lt;BR /&gt;&lt;BR /&gt;My suggestion is, search for sftp in your machine/server (Eg./usr/local/bin/sftp).&lt;BR /&gt;In your script add this path to the PATH variable. Make sure that sftp path is available to your cronjob script. Hope this works fine.&lt;BR /&gt;&lt;BR /&gt;thanks&lt;BR /&gt;Allada</description>
      <pubDate>Wed, 05 Jan 2005 12:36:48 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cron-job/m-p/3437881#M206814</guid>
      <dc:creator>Srini_22</dc:creator>
      <dc:date>2005-01-05T12:36:48Z</dc:date>
    </item>
  </channel>
</rss>

