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,901 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
Find Ransomware Secrets With All-Source Analysis

Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

 
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

Why You Should Analyze Threat Actor TTPs

After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

Join & Write a Comment

I have been running these systems for a few years now and I am just very happy with them.   I just wanted to share the manual that I have created for upgrades and other things.  Oooh yes! FreeBSD makes me happy (as a server), no maintenance and I al…
I promised to write further about my project, and here I am.  First, I needed to setup the Primary Server.  You can read how in this article: Setup FreeBSD Server with full HDD encryption (http://www.experts-exchange.com/OS/Unix/BSD/FreeBSD/A_3660-S…
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…
This video shows how to set up a shell script to accept a positional parameter when called, pass that to a SQL script, accept the output from the statement back and then manipulate it in the Shell.

747 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

12 Experts available now in Live!

Get 1:1 Help Now