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,911 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 61

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
 
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
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 
LVL 61

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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Installing FreeBSD… FreeBSD is a darling of an operating system. The stability and usability make it a clear choice for servers and desktops (for the cunning). Savvy?  The Ports collection makes available every popular FOSS application and packag…
FreeBSD on EC2 FreeBSD (https://www.freebsd.org) is a robust Unix-like operating system that has been around for many years. FreeBSD is available on Amazon EC2 through Amazon Machine Images (AMIs) provided by FreeBSD developer and security office…
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
In a previous video, we went over how to export a DynamoDB table into Amazon S3.  In this video, we show how to load the export from S3 into a DynamoDB table.

932 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

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now