Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I m trying to automate the deployment process wherein i follow the following steps-

1.Run a Ant Script to build a .ear file

2.Login to the unix server using putty(SSH Connection) providing the login credentials.

3.Then i enter the superuser credentials for write permissions.

4.Rename a existing file in the server and then transfer the file from the local system to unix server.

My 1st thought was PSCP or PSFTP,but I have no idea how to provide these super user credentials.

I want a command prompt script so that i can save it as .bat file.Plzz help

share|improve this question
1  
Can you log in if you do plink Taps@123.123.124.123 (plink is the command-line equivalent of ssh in the Putty world) and type your password? pscp needs a valid username/password to work. –  jaume Mar 8 '13 at 13:02
    
Are you sure you have write permissions to the file/directory? –  onik Mar 8 '13 at 13:41
    
@onix- yes i need to provide the super user credentials to get the permissions. –  Tapan Mar 11 '13 at 6:03
    
@jaume- Yes i can do it using plink...Is it a secure way to connect to the unix server and transfer files??Also i used the script here that should automate the deployment process,but the flow stops whenever it asks for the password.Is there any way to avoid it so that even after entering the password it keep executing the commands from the script. –  Tapan Mar 11 '13 at 9:12

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.