<?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 jobs in Operating System - Linux</title>
    <link>https://community.hpe.com/t5/operating-system-linux/cron-jobs/m-p/3820659#M100274</link>
    <description>Note that most Windows boxes cannot answer an incoming ftp request be default. You need to enable the ftp server feature (assuming it even exists on your versin of Windows). If the boxes are both internal, then ftp is the best choice. If the boxes are remote, then ftp is a very poor choice as it does not encrypt the data so snoopers can see the data.&lt;BR /&gt; &lt;BR /&gt;Secure Shell (SSH or sftp and scp) do not exist in Windows so you'll have to add an SSH package to enable encrypted data transfers.</description>
    <pubDate>Mon, 10 Jul 2006 14:35:32 GMT</pubDate>
    <dc:creator>Bill Hassell</dc:creator>
    <dc:date>2006-07-10T14:35:32Z</dc:date>
    <item>
      <title>cron jobs</title>
      <link>https://community.hpe.com/t5/operating-system-linux/cron-jobs/m-p/3820653#M100268</link>
      <description>Hi people, well i have to send a cron job to another system. Like there is a file which needs to be transferred to another system every morning. &lt;BR /&gt;What i want is a simple script which would transfer the file and over write the existing one in that particular folder. Now, should i put an ftp clause to do it.&lt;BR /&gt;&lt;BR /&gt;Suggestions please??&lt;BR /&gt;&lt;BR /&gt;Thanks</description>
      <pubDate>Mon, 10 Jul 2006 11:17:57 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/cron-jobs/m-p/3820653#M100268</guid>
      <dc:creator>khilari</dc:creator>
      <dc:date>2006-07-10T11:17:57Z</dc:date>
    </item>
    <item>
      <title>Re: cron jobs</title>
      <link>https://community.hpe.com/t5/operating-system-linux/cron-jobs/m-p/3820654#M100269</link>
      <description>Hi khilari,&lt;BR /&gt;&lt;BR /&gt;#!/usr/bin/sh&lt;BR /&gt;&lt;BR /&gt;#Set vars in the following block&lt;BR /&gt;host=foo&lt;BR /&gt;username=user2&lt;BR /&gt;password=hello&lt;BR /&gt;dir_src=/home/user1&lt;BR /&gt;dir_dest=/&lt;BR /&gt;filename=myfile.text&lt;BR /&gt;&lt;BR /&gt;ftp -n &amp;lt;&amp;lt; _EOF_&lt;BR /&gt;open ${host}&lt;BR /&gt;user ${username} ${password}&lt;BR /&gt;put ${dir_src}/${filename} ${dir_dest}&lt;BR /&gt;bye&lt;BR /&gt;_EOF_&lt;BR /&gt;&lt;BR /&gt;Remember that ${dir_dest} is based on the directory structure displayed by FTP.&lt;BR /&gt;&lt;BR /&gt;PCS</description>
      <pubDate>Mon, 10 Jul 2006 11:31:28 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/cron-jobs/m-p/3820654#M100269</guid>
      <dc:creator>spex</dc:creator>
      <dc:date>2006-07-10T11:31:28Z</dc:date>
    </item>
    <item>
      <title>Re: cron jobs</title>
      <link>https://community.hpe.com/t5/operating-system-linux/cron-jobs/m-p/3820655#M100270</link>
      <description>Hi Khilari:&lt;BR /&gt;&lt;BR /&gt;The simplest approach might be to 'rcp' the file that you want copied:&lt;BR /&gt;&lt;BR /&gt;# rcp -p /var/tmp/myfile otherhost:/var/tmp/myfile&lt;BR /&gt;&lt;BR /&gt;You will need to establish a 'hosts.equiv' or '.rhosts' file on both servers.  See the manpages for 'hosts-equiv(4)' for more information on this.&lt;BR /&gt;&lt;BR /&gt;Setup an appropriate crontask and you should be done.&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...&lt;BR /&gt;</description>
      <pubDate>Mon, 10 Jul 2006 11:33:45 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/cron-jobs/m-p/3820655#M100270</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2006-07-10T11:33:45Z</dc:date>
    </item>
    <item>
      <title>Re: cron jobs</title>
      <link>https://community.hpe.com/t5/operating-system-linux/cron-jobs/m-p/3820656#M100271</link>
      <description>well i have to transfer from an hp unix box to a windows machine............</description>
      <pubDate>Mon, 10 Jul 2006 11:41:41 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/cron-jobs/m-p/3820656#M100271</guid>
      <dc:creator>khilari</dc:creator>
      <dc:date>2006-07-10T11:41:41Z</dc:date>
    </item>
    <item>
      <title>Re: cron jobs</title>
      <link>https://community.hpe.com/t5/operating-system-linux/cron-jobs/m-p/3820657#M100272</link>
      <description>In that case an option would be to use CIFS 9000 (Samba) to either mount the UNIX directory on the Windows box or vice-versa. You can also use FTP but there must be an FTP service running on the Windows server is you want to initiate the transfer from the UNIX side.</description>
      <pubDate>Mon, 10 Jul 2006 11:46:51 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/cron-jobs/m-p/3820657#M100272</guid>
      <dc:creator>A. Clay Stephenson</dc:creator>
      <dc:date>2006-07-10T11:46:51Z</dc:date>
    </item>
    <item>
      <title>Re: cron jobs</title>
      <link>https://community.hpe.com/t5/operating-system-linux/cron-jobs/m-p/3820658#M100273</link>
      <description>khilari,&lt;BR /&gt;&lt;BR /&gt;You have many options for how to transfer the file.  A couple more to consider:&lt;BR /&gt;&lt;BR /&gt;email as an attachment&lt;BR /&gt;======================&lt;BR /&gt;( echo "You will find myfile.gz attached."&lt;BR /&gt;  uuencode myfile.gz myfile.gz ) | mailx -m -s "[$(date +%m\/%d\/%y)] myfile.gz" my@email.addr&lt;BR /&gt;&lt;BR /&gt;scp from the Windows box&lt;BR /&gt;(if you have sshd running under HP-UX)&lt;BR /&gt;===========================================&lt;BR /&gt;1. Generate a public/private key pair.&lt;BR /&gt;2. scp user2@hpux01:~/myfile.gz .&lt;BR /&gt;&lt;BR /&gt;PCS</description>
      <pubDate>Mon, 10 Jul 2006 12:38:40 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/cron-jobs/m-p/3820658#M100273</guid>
      <dc:creator>spex</dc:creator>
      <dc:date>2006-07-10T12:38:40Z</dc:date>
    </item>
    <item>
      <title>Re: cron jobs</title>
      <link>https://community.hpe.com/t5/operating-system-linux/cron-jobs/m-p/3820659#M100274</link>
      <description>Note that most Windows boxes cannot answer an incoming ftp request be default. You need to enable the ftp server feature (assuming it even exists on your versin of Windows). If the boxes are both internal, then ftp is the best choice. If the boxes are remote, then ftp is a very poor choice as it does not encrypt the data so snoopers can see the data.&lt;BR /&gt; &lt;BR /&gt;Secure Shell (SSH or sftp and scp) do not exist in Windows so you'll have to add an SSH package to enable encrypted data transfers.</description>
      <pubDate>Mon, 10 Jul 2006 14:35:32 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/cron-jobs/m-p/3820659#M100274</guid>
      <dc:creator>Bill Hassell</dc:creator>
      <dc:date>2006-07-10T14:35:32Z</dc:date>
    </item>
  </channel>
</rss>

