Results 1 to 6 of 6
  1. #1
    Join Date
    Sep 2006
    Posts
    97

    Unanswered: moving files one location to another location in remote server

    I have server A, ans Server B both are AIX servers. From B run script on where I have to move files one location to another location on same file system.

    ssh svrunifidb.nfcu.net "mv $TDIR/* $BKDIR/*"


    Does Anybosy had similiar problem

  2. #2
    Join Date
    Jan 2007
    Location
    Jena, Germany
    Posts
    2,721
    Knut Stolze
    IBM DB2 Analytics Accelerator
    IBM Germany Research & Development

  3. #3
    Join Date
    Sep 2006
    Posts
    97
    I am getting some help from you always. Thank you very much

  4. #4
    Join Date
    Jun 2003
    Location
    Toronto, Canada
    Posts
    5,516
    Provided Answers: 1
    Code:
    ssh svrunifidb.nfcu.net "find $TDIR -type f -exec '{}' $BKDIR \;"
    should work
    ---
    "It does not work" is not a valid problem statement.

  5. #5
    Join Date
    Mar 2008
    Location
    Tacoma, WA
    Posts
    11
    I am going to assume that you have keys setup on the remote machine running the ssh command to svrunifidb.nfcu.net so you are not prompted for a password?

  6. #6
    Join Date
    Sep 2006
    Posts
    97
    Quote Originally Posted by xtremenw
    I am going to assume that you have keys setup on the remote machine running the ssh command to svrunifidb.nfcu.net so you are not prompted for a password?

    yes now itn't promiting it

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •