Re: dumn unix script question

2001-06-11 Thread Jared Still
On Monday 11 June 2001 10:21, Henry Poras wrote: > Jared, > Thanks for the summary. Any comments on where Tcl fits in to the mix? > I've not used TCL, so I can't really say too much about it. It is generally considered simpler than Perl, and likewise less robust. TK is another matter. If you

RE: dumn unix script question

2001-06-11 Thread Henry Poras
Jared, Thanks for the summary. Any comments on where Tcl fits in to the mix? Henry -Original Message- Sent: Friday, June 08, 2001 5:11 PM To: Multiple recipients of list ORACLE-L Let me start off by saying that I like Java. I took a class in it from Sun, and Java is easy. Learning

RE: dumn unix script question

2001-06-09 Thread Mark Leith
Thanks Jared! Off to find my first Perl Book :) I've seen on the list the things you do with perl scripts, and have to say I'm always impressed.. Mark -Original Message- Sent: Friday, June 08, 2001 10:11 To: Multiple recipients of list ORACLE-L Let me start off by saying that I like

Re: dumn unix script question

2001-06-08 Thread Diana_Duncan
com> cc: Sent by: Fax to: root@fatcity. Subject: Re: du

Re: dumn unix script question

2001-06-08 Thread Jared Still
Let me start off by saying that I like Java. I took a class in it from Sun, and Java is easy. Learning the libs is hard but the language is easy. I'm going to say something now that may sound counter intuitive: Learn Perl first. The reason it may seem counter intuitive is that Perl is hard t

RE: dumn unix script question

2001-06-08 Thread Mark Leith
A quick question - I have VERY limited scripting experience - for arguments sake, lets say - none:) Now, looking at the code below, and having started with java a short time ago to implement certain functions in to our web page, I have to say that they look similar in style.. Is the case? Could I

Re: dumn unix script question

2001-06-07 Thread Jared Still
Well, you've got the right idea, just in the wrong order. The korn shell does not compile the whole script and then execute as say Perl does. It executes it a line at a time. So rearrange your script like so: == #!/bin/ksh function quick_test { echo "h

Thanks, works! -- Re: dumn unix script question

2001-06-07 Thread Janet Linsy
Thank you Michael and Balaji. It works! I'm still in vb mind. vb is what I was doing. shell script is a mistery to me. --- Janet Linsy <[EMAIL PROTECTED]> wrote: > Hi all, > > This must be a really dumn question. :-< > > I have a script which doesn't work well, since it > doesn't recognize

dumn unix script question

2001-06-07 Thread Janet Linsy
Hi all, This must be a really dumn question. :-< I have a script which doesn't work well, since it doesn't recognize a subroutine. I compared my code with other codes that work fine with sub function, and didn't see any difference. (at least look the same style to me.) So I wrote a really sm

RE: Unix script question

2001-02-01 Thread lerobe - Lee Robertson
iple recipients of list ORACLE-L > Subject: Unix script question > > > I am looking to resolve an issue we have with a particular script. > > using a unix script, I need to determine if a file exists and if > the size of the > file is zero bytes. using ftp, we put a file a

RE: Unix script question

2001-02-01 Thread Glenn Travis
check the man page; $ man test > -Original Message- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Roy > Ferguson > Sent: Wednesday, January 31, 2001 2:48 PM > To: Multiple recipients of list ORACLE-L > Subject: Unix script question > > >

Re: Unix script question

2001-01-31 Thread Viraj Luthra
Charlie, You could also do this:- if [ -f check_file ] 2> /dev/null; then # any error messages are not diplayed. ftp ... # write the file name after ftp fi Tell me if you still have problems and can help. Regards, Raja -- On Wed, 31 Jan 2001 13

RE: Unix script question

2001-01-31 Thread Smith, Ron L.
You can do an ls -s command on the file which will return a zero block count in the first column. If this is true don't even bother with the ftp. Ron Smith Database Administration [EMAIL PROTECTED] -Original Message- Sent: Wednesday, January 31, 2001 1:48 PM To: Multiple recipients of

RE: Unix script question

2001-01-31 Thread Smith, Ron L.
You can also do a find filename -size 0. If you return the filename, the file has zero blocks. Ron Smith Database Administration [EMAIL PROTECTED] -Original Message- Sent: Wednesday, January 31, 2001 1:48 PM To: Multiple recipients of list ORACLE-L I am looking to resolve an issue we

RE: Unix script question

2001-01-31 Thread Brian D. Silverio
t; To: Multiple recipients of list ORACLE-L > Subject: RE: Unix script question > > > You can also do a find filename -size 0. If you return the filename, the > file has zero blocks. > > Ron Smith > Database Administration > [EMAIL PROTECTED] > > > -

Re: Unix script question

2001-01-31 Thread Charlie Mengler
"Hand, Michael T" wrote: > > Roy, > I would stick with the test commands you are using. One point, the -s tests > two condition: does the file exist AND is it > 0 bytes, therefore you will > have to break up you test into 2 parts > test -adoes the file exist, and then > test -s > > Regar

RE: Unix script question

2001-01-31 Thread Hand, Michael T
Roy, I would stick with the test commands you are using. One point, the -s tests two condition: does the file exist AND is it > 0 bytes, therefore you will have to break up you test into 2 parts test -adoes the file exist, and then test -s Regards, Mike Hand Polaroid Corp -Original Me

Unix script question

2001-01-31 Thread Roy Ferguson
I am looking to resolve an issue we have with a particular script. using a unix script, I need to determine if a file exists and if the size of the file is zero bytes. using ftp, we put a file a file on a server then we use get to retreive the same file back. we do this to ensure that the file