Search Results

Search: Posts Made By: lazerfoursix
6,699
Posted By lazerfoursix
That worked like a charm. Can you just explain...
That worked like a charm. Can you just explain why please?
6,699
Posted By lazerfoursix
none of that
none of that
6,699
Posted By lazerfoursix
This didn't work. It's copying gspp* into $FILES...
This didn't work. It's copying gspp* into $FILES and attempting to execute the rest of the commands.

for FILES in gspp*
do
echo "Loading $FILES" >> ../logs/myloglog
mv $FILES temp.tmp
...
6,699
Posted By lazerfoursix
The sqlldr command is fine. Yes, I am moving it...
The sqlldr command is fine. Yes, I am moving it prior to calling sqlldr. I am renaming it from a filename that varies day-to-day to a static temporary one. Then my control file references that...
6,699
Posted By lazerfoursix
I have a directory that I would like to check for...
I have a directory that I would like to check for files of a certain pattern, that pattern being "gspp*". There may be several files or there may be no files that fit the given pattern at the time...
6,699
Posted By lazerfoursix
No. It greps all of the files in the directory...
No. It greps all of the files in the directory using that pattern. This works fine if there are files that match in the directory. If there aren't is wherein the problem lies. It does not go into...
6,699
Posted By lazerfoursix
for FILES in grep gspp* do if [ ${FILES} =...
for FILES in grep gspp*
do
if [ ${FILES} = grep ]
then
break
else
echo "Loading $FILES" >> ../path/mylog.log
mv $FILES temp.tmp
sqlldr user/pass@DB control=/path/control.ctl
...
6,699
Posted By lazerfoursix
I wanna do something like for FILES in...
I wanna do something like


for FILES in gspp*
if test $FILES = grep
break
mv $FILES ../archive/$FILES
...
done

But I get errors if it breaks the loop and then hits the "done". ...
6,699
Posted By lazerfoursix
It kinda worked, but if there are no files, it...
It kinda worked, but if there are no files, it returns "grep" in $FILES, which is not what I want.
6,699
Posted By lazerfoursix
Sorry, overlooked that, will try it.
Sorry, overlooked that, will try it.
6,699
Posted By lazerfoursix
Still need help on this.
Still need help on this.
6,699
Posted By lazerfoursix
I probably should've included it, but I'm doing...
I probably should've included it, but I'm doing additional things that require the use of the filename. I'm doing some moving and loading each into a DB as well.
6,699
Posted By lazerfoursix
Looping on a list of files...
This isn't working for multiple files. It works for one file though.

exists1=$(ls | grep gspp*)
for FILES in $exists1
do
echo "Loading $exists1"
...
1,623
Posted By lazerfoursix
Worked, thanks.
Worked, thanks.
1,623
Posted By lazerfoursix
Comparison error
My default shell is ksh. I'm making a simple comparison in a script.

...
if [${exists1} -eq 1] then
...

i keep getting the error " [1: not found". I've tried this comparison a number of...
2,927
Posted By lazerfoursix
I see what the code does, but how can I get...
I see what the code does, but how can I get similar output using FTP instead?
2,927
Posted By lazerfoursix
I can only use FTP on the remote machine. I have...
I can only use FTP on the remote machine. I have full privileges on the local machine.
2,927
Posted By lazerfoursix
I am wondering however, how to verify that the...
I am wondering however, how to verify that the file completed downloading properly because I will need to delete the file on the server when I'm done. So I need to a simple way to verify the...
2,927
Posted By lazerfoursix
I got it to work, thanks.
I got it to work, thanks.
2,927
Posted By lazerfoursix
OK got it, thanks. Clearly I'm new to scripting.
OK got it, thanks. Clearly I'm new to scripting.
2,927
Posted By lazerfoursix
FTP script
To start, this thread, I have read the FTP FAQ and done a search and I can't figure this out. This is really simple, but the first command won't execute. I've removed my server name, user and pass....
Showing results 1 to 21 of 21

 
All times are GMT -4. The time now is 12:39 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy