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...
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...
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...
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...
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...
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...
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...
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...
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...
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...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.