Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Recent content by specv

  1. specv

    open document on citrix app

    Hi I have a web application with a link on a Microsoft Word document. On the Citrix server Microsoft Word is installed. What I want to open a word file with the Microsoft Word on the Citrix Server because my Client don't have Microsoft Word on their computers. How can I do that Thanks Phil
  2. specv

    Convert byte

    Hi I have a program that use DatagramPacket. I receive message from the server and I want to interpretes the result in a byte array. But the problem is that the byte is signed. ex : I have -61 in byteArray[16] but the true result is 195. How can I convert signed byte to unsigned? Thanks Phil
  3. specv

    info-zip zip command

    I try to read a line in the file and zip the patern read. But, the first time nothing is read : while read -- line do zip -r test.zip $1 done < /dfs/projects/pubachat/list.txt How can I read the first lign before the do while? Philippe
  4. specv

    info-zip zip command

    Hi I use zip 2.1 (info-zip). I have a list file I want to zip (list.txt) : /dfs/projects/pubachat/DDP/DEARJOHN/*.mwp /dfs/projects/pubachat/DDP/MASTER/*.* /dfs/projects/pubachat/lettre/*.* /dfs/projects/pubachat/RFI/*.* /dfs/projects/pubachat/supplier/*.lwp...
  5. specv

    netout: write returned 0?

    Thanks Salem, I think I don't lose any logging information I want with ftp -n <<EOF > log.txt 2>/dev/null. Can you explain exactly what 2>/dev/null means? Phil
  6. specv

    netout: write returned 0?

    I have permission, the message appears in file log.txt
  7. specv

    netout: write returned 0?

    Thanks vlad but it produces the same message.
  8. specv

    netout: write returned 0?

    Yes, the file get sent correctly. The complete code I use is : 1) ftp -n <<EOF > log.txt 2>&1 2) open ${ftpserver} 3) user ${ftpuser} ${ftppassword} 4) put ${filefrom} /dfs/projects/gdm/batch/test.txt 5) quit 6) EOF The error is on line 4, when I hardcode the from file I don't have...
  9. specv

    netout: write returned 0?

    When I send file with ftp, on put command, I get this message : netout: write returned 0?. The file looks like to be send. Anybody knows what this message means and how eliminate it? Thanks
  10. specv

    current date / time

    Hi all, I wrote a console application. I want to get the current date/time and write in a log file. How can I get the current date/time ? What include I need? Thanks, Phil
  11. specv

    error log for ftp command

    Hi all, I have a script contains this code : ftp -n <<EOF open ${serverName} user ${userId} ${userPassword} put file.txt /dfs/projects/gdm/batch/result.txt quit EOF Is it possible to put errors in a log file (serverName or userId or password incorrect) ? Thanks, Phil
  12. specv

    read string in file and set variable

    Hi, I have a file named &quot;property.txt&quot; that contains only one string, ex : specv2002. What I want to do is read this string and set a shell variable with the string in a batch file. Someone have an idea? Thanks, Phil
  13. specv

    send file in a batch file

    Thanks Vlad and Ygor with the -n all is ok! Phil
  14. specv

    send file in a batch file

    Hi vlad, I try your code. When I start the script look like to want my password : dcegdmd@sda2 ==> script.sh Password: Name (serverName:dcegdmd): I try to type my password and press enter and I have this message : Login incorrect. Login failed. Please login with USER and PASS. Please login...
  15. specv

    send file in a batch file

    Hi all, I want to send with ftp in a unix batch file. I try some combinaison but look like impossible. ftp serverName username password put test test2 close quit Can you help me with this code? Thanks, Phil

Part and Inventory Search

Back
Top