<?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: ftp tiggering in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/ftp-tiggering/m-p/2640600#M43528</link>
    <description>Hi,&lt;BR /&gt;&lt;BR /&gt;If you set the ftpd to log in verbose mode (add the -l -v switches in /etc/inetd.conf and send the inetd process a HUP signal), you could monitor the log file with something like:&lt;BR /&gt;&lt;BR /&gt;==========================================&lt;BR /&gt;#!/bin/ksh&lt;BR /&gt;&lt;BR /&gt;tail -1f /var/adm/syslog/syslog.log | while read line ; do&lt;BR /&gt;echo $line | grep -q 'FTP LOGIN'&lt;BR /&gt;if [ $? -eq 0 ] ; then&lt;BR /&gt; echo $line | sed 's/.*ftpd\[\([^]]*\).*, \(.*\)/\1 \2/' | read pid user&lt;BR /&gt; echo $user &amp;gt; /var/tmp/ftp.${pid}&lt;BR /&gt; continue&lt;BR /&gt;fi&lt;BR /&gt;echo $line | grep -q 'FTP: store'&lt;BR /&gt;if [ $? -eq 0 ] ; then&lt;BR /&gt; echo $line | sed 's/.*ftpd\[\([^]]*\)]: FTP: store \(.*\)$/\1 \2/' | read pid file&lt;BR /&gt; echo $file transferred by `cat /var/tmp/ftp.${pid}`&lt;BR /&gt; YOUR PROCESS...&lt;BR /&gt;fi&lt;BR /&gt;done&lt;BR /&gt;=====================================&lt;BR /&gt;&lt;BR /&gt;where YOUR PROCESS is the edm transfer procedure.  The /var/tmp/ftp.$pid files would contain the username, and would need tidying up occasionally.&lt;BR /&gt;&lt;BR /&gt;Rgds, Robin.</description>
    <pubDate>Tue, 08 Jan 2002 13:02:50 GMT</pubDate>
    <dc:creator>Robin Wakefield</dc:creator>
    <dc:date>2002-01-08T13:02:50Z</dc:date>
    <item>
      <title>ftp tiggering</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ftp-tiggering/m-p/2640598#M43526</link>
      <description>hi,&lt;BR /&gt;we have an ftp server for customers to put their accounting files to be processed by our company...they put their standart-named file via ftp...every customer has a home directory,&lt;BR /&gt;which has two sub-directories,one to put files, the other to get the processed file by the mainframe...the communication between the unix box and the mainframe is done via edm...up to now, we used to have a cron job that works every half an hour and searches for the new files that have been put by customers...but because the number of customers&lt;BR /&gt;growed rapidly,we have timing problems with other cron jobs...&lt;BR /&gt;is there a way that when the customer ftps the file, i can automatically be aware of this, and trigger the edm program to process the file,thus by avoiding the need for the cron jobs..&lt;BR /&gt;thanks...</description>
      <pubDate>Tue, 08 Jan 2002 11:38:58 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ftp-tiggering/m-p/2640598#M43526</guid>
      <dc:creator>Atil Volkan Yildirim</dc:creator>
      <dc:date>2002-01-08T11:38:58Z</dc:date>
    </item>
    <item>
      <title>Re: ftp tiggering</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ftp-tiggering/m-p/2640599#M43527</link>
      <description>Hi&lt;BR /&gt;&lt;BR /&gt;Is the problem that as your customers increase then to circulate and process the file conversions is taking more and more time.&lt;BR /&gt;&lt;BR /&gt;Just an idea can you put in the .profile of the customers dir a small script to identify their logout and then check  for the presence of their file and then action it.&lt;BR /&gt;&lt;BR /&gt;HTH&lt;BR /&gt;&lt;BR /&gt;Paula</description>
      <pubDate>Tue, 08 Jan 2002 12:12:55 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ftp-tiggering/m-p/2640599#M43527</guid>
      <dc:creator>Paula J Frazer-Campbell</dc:creator>
      <dc:date>2002-01-08T12:12:55Z</dc:date>
    </item>
    <item>
      <title>Re: ftp tiggering</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ftp-tiggering/m-p/2640600#M43528</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;If you set the ftpd to log in verbose mode (add the -l -v switches in /etc/inetd.conf and send the inetd process a HUP signal), you could monitor the log file with something like:&lt;BR /&gt;&lt;BR /&gt;==========================================&lt;BR /&gt;#!/bin/ksh&lt;BR /&gt;&lt;BR /&gt;tail -1f /var/adm/syslog/syslog.log | while read line ; do&lt;BR /&gt;echo $line | grep -q 'FTP LOGIN'&lt;BR /&gt;if [ $? -eq 0 ] ; then&lt;BR /&gt; echo $line | sed 's/.*ftpd\[\([^]]*\).*, \(.*\)/\1 \2/' | read pid user&lt;BR /&gt; echo $user &amp;gt; /var/tmp/ftp.${pid}&lt;BR /&gt; continue&lt;BR /&gt;fi&lt;BR /&gt;echo $line | grep -q 'FTP: store'&lt;BR /&gt;if [ $? -eq 0 ] ; then&lt;BR /&gt; echo $line | sed 's/.*ftpd\[\([^]]*\)]: FTP: store \(.*\)$/\1 \2/' | read pid file&lt;BR /&gt; echo $file transferred by `cat /var/tmp/ftp.${pid}`&lt;BR /&gt; YOUR PROCESS...&lt;BR /&gt;fi&lt;BR /&gt;done&lt;BR /&gt;=====================================&lt;BR /&gt;&lt;BR /&gt;where YOUR PROCESS is the edm transfer procedure.  The /var/tmp/ftp.$pid files would contain the username, and would need tidying up occasionally.&lt;BR /&gt;&lt;BR /&gt;Rgds, Robin.</description>
      <pubDate>Tue, 08 Jan 2002 13:02:50 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ftp-tiggering/m-p/2640600#M43528</guid>
      <dc:creator>Robin Wakefield</dc:creator>
      <dc:date>2002-01-08T13:02:50Z</dc:date>
    </item>
    <item>
      <title>Re: ftp tiggering</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ftp-tiggering/m-p/2640601#M43529</link>
      <description>If all the customer does is create a file then you only have a couple of options:&lt;BR /&gt;&lt;BR /&gt;1. A regular cron job.&lt;BR /&gt;2. A 'daemon' process that is always running that regularly checks your incoming directories.&lt;BR /&gt;&lt;BR /&gt;It's also possible to extend the amount of information logged by ftpd (amend /etc/inetd.conf to add the v flag) then change your 'daemon' process to watch the syslog for relevant ftp messages. This is a bit complicated though - what are the 'timing problems' that you are experiencing with cron jobs?&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;John&lt;BR /&gt;</description>
      <pubDate>Tue, 08 Jan 2002 13:04:05 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ftp-tiggering/m-p/2640601#M43529</guid>
      <dc:creator>John Palmer</dc:creator>
      <dc:date>2002-01-08T13:04:05Z</dc:date>
    </item>
    <item>
      <title>Re: ftp tiggering</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ftp-tiggering/m-p/2640602#M43530</link>
      <description>hi,&lt;BR /&gt;first of all, when the cron script starts&lt;BR /&gt;searching all of the customers directory,&lt;BR /&gt;it takes a couple of minutes to finish this job...we search the new files, by comparing their names with the names stored in a special&lt;BR /&gt;file-in which the early transferred files names resided in order to not to send them again to pool...the files found as "new" are&lt;BR /&gt;all sent to a directory(which we call a "pool"), and a new cron job is started for&lt;BR /&gt;edm to transfer these files to mainframe...&lt;BR /&gt;the time between these two cron-jobs need to be&lt;BR /&gt;little, in order to process the files rapidly...this was o good way before we have&lt;BR /&gt;not so many customers,but now it suffers,in both adminastring  and problem solving...&lt;BR /&gt;that's why, we decide the trigger the scripts..&lt;BR /&gt;&lt;BR /&gt;by the way, a new question:&lt;BR /&gt;does ftp users have their .profile executed?&lt;BR /&gt;thank u all&lt;BR /&gt;</description>
      <pubDate>Tue, 08 Jan 2002 13:36:10 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ftp-tiggering/m-p/2640602#M43530</guid>
      <dc:creator>Atil Volkan Yildirim</dc:creator>
      <dc:date>2002-01-08T13:36:10Z</dc:date>
    </item>
    <item>
      <title>Re: ftp tiggering</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ftp-tiggering/m-p/2640603#M43531</link>
      <description>You could do something like this, which could be dangerous (potential security issues):&lt;BR /&gt;&lt;BR /&gt;change the name of ftpd, to something like wrapped_ftpd.&lt;BR /&gt;&lt;BR /&gt;Then, create a script like this, called ftpd:&lt;BR /&gt;&lt;BR /&gt;#!/usr/bin/ksh&lt;BR /&gt;#&lt;BR /&gt;touch /tmp/ftptime_start&lt;BR /&gt;/usr/lbin/wrapped_ftpd&lt;BR /&gt;touch /tmp/ftptime_stop&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Of course, change the "touches" to whatever you want, that will perform a directory scan for newly deposited files.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;live free or die&lt;BR /&gt;harry</description>
      <pubDate>Tue, 08 Jan 2002 13:42:34 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ftp-tiggering/m-p/2640603#M43531</guid>
      <dc:creator>harry d brown jr</dc:creator>
      <dc:date>2002-01-08T13:42:34Z</dc:date>
    </item>
    <item>
      <title>Re: ftp tiggering</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ftp-tiggering/m-p/2640604#M43532</link>
      <description>Don't forget to change the new ftpd:&lt;BR /&gt;&lt;BR /&gt;chmod 544 ftpd&lt;BR /&gt;chown bin:bin ftpd&lt;BR /&gt;&lt;BR /&gt;live free or die&lt;BR /&gt;harry</description>
      <pubDate>Tue, 08 Jan 2002 13:44:07 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ftp-tiggering/m-p/2640604#M43532</guid>
      <dc:creator>harry d brown jr</dc:creator>
      <dc:date>2002-01-08T13:44:07Z</dc:date>
    </item>
    <item>
      <title>Re: ftp tiggering</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ftp-tiggering/m-p/2640605#M43533</link>
      <description>I agree with Paula's idea of having the edm script get triggered by .profile when they log in to to the ftp.&lt;BR /&gt;&lt;BR /&gt;This would trigger more, but smaller edm scripts.&lt;BR /&gt;&lt;BR /&gt;I would also suggest that the userid be passed as a parameter of the edm script so that you still would only have to maintain one script.</description>
      <pubDate>Tue, 08 Jan 2002 13:55:38 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ftp-tiggering/m-p/2640605#M43533</guid>
      <dc:creator>Krishna Prasad</dc:creator>
      <dc:date>2002-01-08T13:55:38Z</dc:date>
    </item>
  </channel>
</rss>

