[HPADM] Summary: FTP Questions..

From: Jim Langston (jim.langston_at_walkerfirst.com)
Date: 05/30/03

  • Next message: Julius Szelagiewicz: "[HPADM] RE: [HPUX] [SUMMARY] [ADDENDUM] Adding many users to one group"
    To: "HP-UX List (E-mail)" <hpux-admin@dutchworks.nl>
    Date: Fri, 30 May 2003 11:00:58 -0400
    
    

    Folks,

    Well I get the doh award for the day. He wasn't using fully quaified path
    names on his ftp scripts. Doing so worked. Thanks for the emails
    everyone!!!!!!!! Just send the Doh of the Day award my way. :)

    Cheers,

    Jim
    > -----Original Message-----
    > From: hpux-admin-owner@DutchWorks.nl
    > [mailto:hpux-admin-owner@DutchWorks.nl]On Behalf Of Jim Langston
    > Sent: Friday, May 30, 2003 10:24 AM
    > To: HP-UX List (E-mail)
    > Subject: [HPADM] FTP Questions..
    >
    >
    > Okay folks, one of my developers is having some FTP issues. He has some
    > scripts that he has placed in oracle's cronttab. His procedure works fine
    > when he runs things from the command line, but when he places
    > them in cron,
    > it doesn't work. For the life of me, I can't figure out what is
    > happening.
    >
    >
    > any help is appreciated.
    >
    > Cheers,
    >
    > Jim
    >
    > Here are the scripts: (btw, x.x.x.x represents the ip address we are
    > connecting to, and username and password represents the username and
    > password of the user)
    >
    > runftp script:
    > rm -f /u/wynncommupdates/wynncomupdate.log
    > date > /u/wynncommupdates/wynncomupdate.log
    > sh /u/wynncommupdates/ftpscript.sh >>
    > /u/wynncommupdates/wynncomupdate.log
    > #sleep 10
    > #mailx -s "Wynncomm FTP Update Log" markpr2@walkerassoc.com <
    > /u/wynncommupdates/wynncomupdate.log
    > mailx -s "Wynncomm FTP Update Log" dba@walkerassoc.com <
    > /u/wynncommupdates/wynncomupdate.log
    > mailx -s "FTP Log" jimla@walkerassoc.com <
    > /u/wynncommupdates/wynncomupdate.log
    >
    > ftpscript.sh script:
    > #!/bin/sh
    > #
    > ##########################################################
    > # #
    > # This script is updating wynncomm through FTP. It #
    > # puts the following files on ftp server x.x.x.x #
    > # #
    > # /u/wynncommupdates/RedZone.csv #
    > # /u/wynncommupdates/ItemFam.csv #
    > # /u/wynncommupdates/ItemGroup.csv #
    > # #
    > ##########################################################
    >
    > ftp -n -i << EOF
    > verbose
    > open x.x.x.x
    > user username password
    > put RedZone.csv
    > put ItemFam.csv
    > put ItemGroup.csv
    > bye
    > EOF
    >
    > Here is the output that is given when it is run from the command line:
    >
    > Fri May 30 09:50:45 EDT 2003
    > Verbose mode on.
    > Connected to x.x.x.x.
    > 220 web Microsoft FTP Service (Version 5.0).
    > 331 Password required for username.
    > 230 User username logged in.
    > 200 PORT command successful.
    > 150 Opening ASCII mode data connection for RedZone.csv.
    > 226 Transfer complete.
    > 86309 bytes sent in 0.15 seconds (567.72 Kbytes/s)
    > 200 PORT command successful.
    > 150 Opening ASCII mode data connection for ItemFam.csv.
    > 226 Transfer complete.
    > 9715 bytes sent in 0.00 seconds (23196.34 Kbytes/s)
    > 200 PORT command successful.
    > 150 Opening ASCII mode data connection for ItemGroup.csv.
    > 226 Transfer complete.
    > 1819 bytes sent in 0.00 seconds (15720.06 Kbytes/s)
    > 221
    >
    > Here is the output when it is run from cron:
    >
    > Fri May 30 09:52:00 EDT 2003
    > Verbose mode on.
    > Connected to x.x.x.x.
    > 220 web Microsoft FTP Service (Version 5.0).
    > 331 Password required for username.
    > 230 User username logged in.
    > 221
    >
    >
    >
    > --
    > ---> Please post QUESTIONS and SUMMARIES only!! <---
    > To subscribe/unsubscribe to this list, contact
    > majordomo@dutchworks.nl
    > Name: hpux-admin@dutchworks.nl Owner:
    > owner-hpux-admin@dutchworks.nl
    >
    > Archives: ftp.dutchworks.nl:/pub/digests/hpux-admin (FTP,
    > browse only)
    > http://www.dutchworks.nl/htbin/hpsysadmin (Web,
    > browse & search)
    >
    >

    --
                 ---> Please post QUESTIONS and SUMMARIES only!! <---
            To subscribe/unsubscribe to this list, contact majordomo@dutchworks.nl
           Name: hpux-admin@dutchworks.nl     Owner: owner-hpux-admin@dutchworks.nl
     
     Archives:  ftp.dutchworks.nl:/pub/digests/hpux-admin       (FTP, browse only)
                http://www.dutchworks.nl/htbin/hpsysadmin   (Web, browse & search)
    

  • Next message: Julius Szelagiewicz: "[HPADM] RE: [HPUX] [SUMMARY] [ADDENDUM] Adding many users to one group"

    Relevant Pages

    • Re: [PHP] implementation of guest book
      ... The username and password are probably in a configuration file, look arround for a config.php, or anything of that variant. ... Also check in whatever php code you have ad see if there isnt' a username and pass set in there as a variagble. ... you'll probably have to write your own administrative scripts to access the guestbook tables in the database. ...
      (php.general)
    • Re: get rid of Login Password?
      ... > guessing your username and logging in as you and abusing your system. ... mediate scripts like /etc/rc.d/rc. ... is not a big issue, since it's my home computer, and I live alone. ...
      (comp.os.linux.setup)
    • Re: Connect to GMail with Username/Password
      ... with some Username and Password automatically with some LINUX Commands/ ... Scripts or may be ... or you might need to supply POST data to the web site (read the manual for ... Firefox can remember usernames and passwords. ...
      (comp.unix.programmer)
    • Re: Batch job submission using web page?
      ... > CSWS, WASD, and OSU all have mechanisms to allow scripts to run under other ... excute under a username other that the one running the http_server? ...
      (comp.os.vms)