in a bat file
Dim objwriter4 As New StreamWriter(w_wrkcommand) wLine = "ftp -n -s:" & w_wrkftpcommands1 & " " & m_pgp_machine & " >>cegttrans1.log" objwriter4.WriteLine(wLine) wLine = "plink " & m_pgp_machine & " -ssh -batch -v -l " & m_pgp_loginid & " -pw " & w_wrk_pass wLine = wLine & " chmod 700 " & w_wrkFileTrName & " >>cegtplink1.log" objwriter4.WriteLine(wLine) wLine = "plink " & m_pgp_machine & " -ssh -batch -v -l " & m_pgp_loginid & " -pw " & w_wrk_pass wLine = wLine & " ./" & w_wrkFileTrName & " >>cegtplink2.log" objwriter4.WriteLine(wLine) wLine = "ftp -n -s:" & w_wrkftpcommands2 & " " & m_pgp_machine & " >>cegttrans2.log" objwriter4.WriteLine(wLine) objwriter4.Close() retvalue = Shell(w_wrkcommand, AppWinStyle.MinimizedFocus, waitvalue)
in this attempt the 2 ftps work fine and the 2 plinks hang
as separate commands
Dim wcommand1 As String = "ftp -n -s:" & w_wrkftpcommands1 & " " & m_pgp_machine & " >>cegttrans1.log" Dim wcommand2 As String = "plink " & m_pgp_machine & " -ssh -batch -v -l " & m_pgp_loginid & " -pw " & w_wrk_pass wcommand2 = wcommand2 & " chmod 700 " & w_wrkFileTrName & " >>cegtplink1.log" Dim wcommand3 As String = "plink " & m_pgp_machine & " -ssh -batch -v -l " & m_pgp_loginid & " -pw " & w_wrk_pass wcommand3 = wcommand3 & " ./" & w_wrkFileTrName & " >>cegtplink2.log" Dim wcommand4 As String = "ftp -n -s:" & w_wrkftpcommands2 & " " & m_pgp_machine & " >>cegttrans2.log" retvalue = Shell(wcommand1, AppWinStyle.MinimizedFocus, waitvalue) retvalue = Shell(wcommand2, AppWinStyle.MinimizedFocus, waitvalue) retvalue = Shell(wcommand3, AppWinStyle.MinimizedFocus, waitvalue) retvalue = Shell(wcommand4, AppWinStyle.MinimizedFocus, waitvalue)
in this case neither the ftps nor the plinks work - all get zero return codes but nothing happens
Help.

Add Reply




MultiQuote

| 


