[HPADM] RE: help with a script - condition to check the size of t he file and initiate ftp

From: BAKHSHESH Kazem (BAKHSHEK_at_ESSILOR.fr)
Date: 05/12/05

  • Next message: vulgate: "[HPADM] install rx2600"
    To: Balaji Nathan <balajinathan2003@yahoo.com>, hpux-admin@DutchWorks.nl
    Date: Thu, 12 May 2005 09:12:25 +0200
    
    
    

    Hi
     
    Hope can help
     
    ############pop is a flage file which can be empty or
    itinitialiseted###########
     
    #################################
     
    And here the script
    ###########
     
    INF=pop
     
    x=$(cat $INF | wc -c)
     
            if [ $x -ne 0 ]; then
                    echo "You can lunch the ftp command"
            else
                    echo "$INF is empty"
            fi
     
     
     

      _____

    De : hpux-admin-owner@DutchWorks.nl [mailto:hpux-admin-owner@DutchWorks.nl]
    De la part de Balaji Nathan
    Envoyé : mercredi 11 mai 2005 22:24
    À : hpux-admin@DutchWorks.nl
    Objet : [HPADM] help with a script - condition to check the size of the file
    and initiate ftp

    Hi admins,
    Please help me on the following:
    I have to set up a condition;
     
    ie if the file "testxx" is zero bytes, DO NOT iniate the ftp process.
    If "testxx" size is other than zero byte, initiate the ftp.
     
    Please help me on the script syntax..
    Thanks
    Balaji

      _____

    Do you Yahoo!?
    Yahoo! Small Business - Try
    <http://us.rd.yahoo.com/evt=31637/*http://smallbusiness.yahoo.com/resources/
    > our new resources site!

    --
                 ---> 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: vulgate: "[HPADM] install rx2600"

    Relevant Pages

    • Re: FTP delete problem
      ... the problem was a lock to a file that the ftp get worked, ... Bernard Cheah ha scritto: ... generate by schedule task. ... If i manually execute the script, the output wrote, but by schedule ...
      (microsoft.public.inetserver.iis.ftp)
    • Re: FTP delete problem
      ... Yes, the script looking the previous day log file, but when it's still ... Bernard Cheah ha scritto: ... the problem was a lock to a file that the ftp get worked, ... generate by schedule task. ...
      (microsoft.public.inetserver.iis.ftp)
    • SUMMARY: AUTOMATED FTP WITH TWO LOGINS
      ... The script is now working, Michael DeSimone made the below suggestion: ... AUTOMATED FTP WITH TWO LOGINS ... can't find list of remote files, ...
      (SunManagers)
    • Re: Scripted FTP transfer
      ... Rather then specify the username and password in your script, ... going to run the ftp script, ... If you are running this from root, the .netrc will be created in / ... I'm trying to write a FTP command file on the fly to ...
      (comp.unix.sco.misc)
    • Re: FTP delete problem
      ... Bernard Cheah ha scritto: ... the problem was a lock to a file that the ftp get worked, ... generate by schedule task. ... If i manually execute the script, the output wrote, but by ...
      (microsoft.public.inetserver.iis.ftp)