Solved

How do I get AutoSys to execute an FTP job from a UNIX server to a Win2k server?

Posted on 2004-08-03
10
1,931 Views
Last Modified: 2011-09-20
I am trying to get AutoSys to execute an FTP job on a UNIX server to a Win2K server but it appears that AutoSys can not log into the Win2K server. I am able to FTP into the Win2K server from other machines using the same ID. Is there something special that needs to be done to get AutoSys to execute an FTP job?
0
Comment
Question by:dk02151
  • 3
  • 2
  • 2
  • +2
10 Comments
 
LVL 51

Expert Comment

by:ahoffmann
ID: 11709534
which UNIX are you using?
Please post the script (or whatever) how you try to connect with ftp
0
 
LVL 62

Expert Comment

by:gheist
ID: 11715445
Yes - you need another ftp server, since IIS bundled one does not close data connections after transfer....
0
 

Author Comment

by:dk02151
ID: 11716395
We are using HP UNIX. I will get the script from the UNIX developer.

As to the use of IIS we have not had any problems with ftp jobs to our Win2K servers in the past.
0
Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

 
LVL 51

Expert Comment

by:ahoffmann
ID: 11716489
ok, you either need a scriptable ftp client (like ncftp), or a passwordless ftp account on the server, or an expect script
on which platform is AutoSys? is it your user on the ftp server?
0
 
LVL 62

Expert Comment

by:gheist
ID: 11719960
AutoSys is a robot software that does everything operators ever did(or cron). problem is that it uses own ftp engine to transfer files. Please listen to ahoffman and use some command to transfer files instead (or patch AutoSys).
0
 

Author Comment

by:dk02151
ID: 11720198
Here is the FTP script.

cd @WorkDownloads
ascii
lcd /compass/intg_fn3a/conservation
put CompassConsReg.txt
bye
0
 

Author Comment

by:dk02151
ID: 11720229
Oops. I dropped the first line. Let me try it again.

user develop weTm!;A
cd @WorkDownloads
ascii
lcd /compass/intg_fn3a/conservation
put CompassConsReg.txt
bye
0
 
LVL 1

Expert Comment

by:kmckinstry
ID: 11753156
Not sure what you want to do, but is it something like backing up files?  Is it through the Internet or on a local machine?

Here is a script that will send files to a W2K by creating a mount.  It loads shlight, sends the files, then unloads shlight.

With a few modifications, you could make it send the files via the Internet through ftp, but you should probably encrypt the data through ssh.

#!/bin/sh
# ~kdm
# place the list of back up files in FilesToBU located in
LIST_OF_FILES=/tmp/FilesToBU

# and copied to:
LOCATION=/mnt

SHARE="//computer/directory"
U=administrator
P=password

/usr/local/sbin/shlight $SHARE $LOCATION -U $U -P $P

if [ "$?" -eq 1 ] ; then
  echo "Couldn't mount remote share for backups"
  exit 1
fi

echo Mounted remote share $SHARE

cat $LIST_OF_FILES | \
 while read fn rest ; do \
   if [ "$fn" = "#" ] ; \
     then echo comment $rest ; \
     else if [ "$fn" != "" ] ; then \
       if [ -e "$fn" ] ; then \
         FULLNAME=$LOCATION`dirname \`echo $fn\`` ; \
         echo Copying $fn to $FULLNAME ; \
         mkdir -p $FULLNAME ; \
         cp -RL $fn $FULLNAME/ ; \
       fi ; \
     fi ; \
   fi ; \
 done

echo Unmounting remote share $SHARE
/usr/local/sbin/unshlight $LOCATION
0
 

Accepted Solution

by:
CetusMOD earned 0 total points
ID: 11984425
PAQed, with points refunded (500)

CetusMOD
Community Support Moderator
0

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Let's say you need to move the data of a file system from one partition to another. This generally involves dismounting the file system, backing it up to tapes, and restoring it to a new partition. You may also copy the file system from one place to…
Introduction Regular patching is part of a system administrator's tasks. However, many patches require that the system be in single-user mode before they can be installed. A cluster patch in particular can take quite a while to apply if the machine…
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:

838 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question