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 IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  1. saltbits

    writing to specific line

    Thanks. I never knew of such a command and just now read it up after seeing your response(am a long-time newbie). Thanks.
  2. saltbits

    writing to specific line

    Thanks LKB. I guess I will just have separate files for each.
  3. saltbits

    writing to specific line

    I have 4 batch processes that begin to run at the same time. They all read from and write to a properties file. So the properties file looks like this (with the values changing everyday, of course): Batch1Date=20040809 Batch2Date=20040729 Batch3Date=20040808 Batch4Date=20040808 These wont have...
  4. saltbits

    recommended Reading

    the w3schools.com site is a pretty decent one for beginners that know/remember no sql and merely want a start. but it definitely is only a 1st-day guide...
  5. saltbits

    stored procedure + unix + OUT argument

    I have a procedure that looks like this: CREATE PROCEDURE DAY0_PROC (OUT v_ts TIMESTAMP) LANGUAGE SQL P1: BEGIN .. --v_ts receives some value here END P1 I have a unix shell script that calls it like this: db2 "CALL DAY0_PROC(?)"; After this call, in the unix script, I want to capture the OUT...
  6. saltbits

    read + timeout

    Thanks PHV!
  7. saltbits

    read + timeout

    I am writing a #!/bin/sh script on SunOS5.8. I want to read keyboard input and if the input timesout, I want to default to something else. I have looked in forums and found quite a few techniques none of which seem to work for me... MY script looks something like this (there is no IF condition...
  8. saltbits

    unix file size

    Rod, >How did you use 'dd' to make sure it was empty? I just opened the file and did a 'dd' vi command! >Are you saying that your test returns the same result for >both the 0 and 1 byte files? Can you show the test in >context? no my tests behave differently, which is why the problem...
  9. saltbits

    unix file size

    Thanks, all you guys! I guess I'll just change the way the empty file is created and be sure that the size will be 0.
  10. saltbits

    unix file size

    my requirement: read txt file and if not empty do something. I notice that on one unix server, i use vi to create an empty file, but the file size is 1, not 0. the bottom of the vi editor says the file has '1 line, 1 character' although i did a 'dd' and made sure the file is empty. On another...
  11. saltbits

    sftp script

    thanks, nawlej.
  12. saltbits

    sftp script

    one final Q, nawlej, if you still come back to this thread: suppose the destination server already has an authorized_keys file, would we simply appened the contents of our id_dsa.pub to it?? unfortunately, i cant test this myself until we go to production but would like to be armed with the info...
  13. saltbits

    sftp script

    nawlej, i see what you mean and i also got it to work. thanks again.
  14. saltbits

    sftp script

    nawlej, although i dont know what all this means, i am going to try it and will return to say how it went. thanks a bunch for the detailed help.
  15. saltbits

    sftp script

    Here is my script: #!/bin/sh host='host01' user='user01' pwd='pass01' OLDFILE='f1.txt' NEWFILE='f2.txt' sftp $host <<END_SCRIPT put $OLDFILE $NEWFILE quit END_SCRIPT exit 0 And here is what it asks when i run it: Connecting to host01... user01@host01's password: Then when I type the password...
  16. saltbits

    sftp script

    thanks, nawlej. i just tried that but doesnt seem to help. i am pretty new to ftp/sftp and dont know where i am wrong....
  17. saltbits

    sftp script

    i am trying to do a simple sftp put. i want it to not prompt for password. searching on the net, i get more info about how to keep the password secure and less about out to do it the lazy-easy way cos i really am not concerned about password security right now. how do i do it with hardcoded...
  18. saltbits

    db2 - order of declarations

    never mind! i got it.
  19. saltbits

    db2 - order of declarations

    i notice on forums and documentation that order of declarations in DB2 needs to be Vars, Conditions, Cursor, Handler. Added to these i have a global temp table. i have tried out several combinations. #1. For Vars, Cursor, GlobalTempTable, Handler, i get the error: An unexpected token "<handler...
  20. saltbits

    db2 procedures - export + variable

    thanks prusqler - i got it done anyway - using global temp tables. thanks for the time, though.

Part and Inventory Search

Back
Top