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,938 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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
Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
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: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying 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

Hello fellow BSD lovers, I've created a patch process for patching openjdk6 for BSD (FreeBSD specifically), although I tried to keep all BSD versions in mind when creating my patch. Welcome to OpenJDK6 on BSD First let me start with a little …
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 navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…

735 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