Search Results

Search: Posts Made By: V1l1h1
2,237
Posted By V1l1h1
yes I'm using "/bin/sh " it won't let me...
yes I'm using "/bin/sh "

it won't let me use stat .. it prompts "not found..
also, I could not use switch with stat and also -r switch with date
the closet I can try was that mv...
2,237
Posted By V1l1h1
ok.. to test further, I've removed all of the...
ok.. to test further, I've removed all of the spaces and used <<EOF>> tag as suggested. I'v also used db connection login/pw.. this time it didn't prompt end-of-file error.. but file rename didn't...
2,237
Posted By V1l1h1
for "indentation" sake I've used spaces.. is...
for "indentation" sake I've used spaces..
is that the issue?
2,237
Posted By V1l1h1
my intent for that line is to invoke sqlplus ,...
my intent for that line is to invoke sqlplus , write log activities to a specific file name and call a script, which is executing two PL/Sql stored procedures..

I believe that is what I did ..
2,237
Posted By V1l1h1
if you meant this .. I tried .. still same error ...
if you meant this .. I tried .. still same error
sqlplus /nolog <<-EOF >./tst.log
2,237
Posted By V1l1h1
Can not determine end-of-file error
Hello Experts,

I've used vi editor to write this script, provided permission, but I invoke it
it is prompting end-of-file errors.. I'm not sure what is causing that error..
would like some...
1,341
Posted By V1l1h1
I'm pretty sure I used VI editor to write today's...
I'm pretty sure I used VI editor to write today's script -- anyhow I got it working.. I had to use a for loop to get around to work with sqlldr part
1,341
Posted By V1l1h1
how to assign variables in a shell script
how to assign variables in a shell script
1,341
Posted By V1l1h1
Sqlldr call via shell script prompts error
Good morning,
I'm attempting to call sqlldr via shell script and it is prompting endIf is unec

#!/bin/sh
cd /tmp/v_tst
FILENAME_WANTED=`date +"HourlyData_%Y%m%d_%H00.txt"`
echo...
2,741
Posted By V1l1h1
Hello Don, I finally used vi editor and got...
Hello Don,

I finally used vi editor and got it working ..

# Vani Sonti
# 07/14/2016
# find file name match and load data only when a match found
# if not display msg
#!/usr/bin/sh...
2,741
Posted By V1l1h1
Good morning All - Rodic, I'm using...
Good morning All -

Rodic,
I'm using notepad to write the shell script and invoke it using Putty utility
that is why I was encountering error "syntax error".. some of the echo lines I had...
2,741
Posted By V1l1h1
i'm using Putty utility to run the shell script...
i'm using Putty utility to run the shell script .. that is where I'm encountering error..

---------- Post updated at 11:16 AM ---------- Previous update was at 10:34 AM ----------

I used:
ls...
2,741
Posted By V1l1h1
still erring.. #!/bin/sh ...
still erring..

#!/bin/sh
FILENAME_WANTED=`date +"HourlyDate_%Y%m%d_%H00.txt"`
echo "$FILENAME_WANTED"
FILENAME_CURRENT='HourlyData_20160708_1500.txt'
echo "$FILENAME_CURRENT"
if [...
2,741
Posted By V1l1h1
if it helps .. file is received hourly.. in the...
if it helps .. file is received hourly.. in the meantime, I'm countering "syntax error at line 14: `fi' unexpected" -- I must be doing something wrong..

#!/bin/sh
FILENAME_WANTED=`date...
2,741
Posted By V1l1h1
Don - thank you for your suggestion .. I'm...
Don - thank you for your suggestion .. I'm modifying shell script to see if it works.. I'll post the results shortly..

In the meantime, how to determine current file.. form the attached list?
2,741
Posted By V1l1h1
Appreciate your response. Currently i'm invoking...
Appreciate your response. Currently i'm invoking shell script using Putty utility so ECHO is helping me to find errors.. I'm new UNIX and not completed tested the script. I'll correct the code...
2,741
Posted By V1l1h1
Hour display format
Hello Sir/Madam,

I'm using Putty utility to run a shell script. I found HOUR display in two positions in UNIX. Is it possible to display in four positions?

File name example: my file name is:...
2,158
Posted By V1l1h1
Thank you for your quick response UNIX guru.. I...
Thank you for your quick response UNIX guru.. I got the ball rolling my side with your help..

Also appriciate your help folks, now, i know some UNIX ..
2,158
Posted By V1l1h1
Mead, Thank you.. I have a little bit more...
Mead, Thank you.. I have a little bit more understanding now..
Although, Scott didn't use "," in his syntax..


I still need to use Scott's format..
nawk -F, '{$8=substr($8,1+index($8,"_"))...
2,158
Posted By V1l1h1
All I know is my test server is a UNIX server,...
All I know is my test server is a UNIX server, but here an appropriate answer for ur qes:

SunOS perseus 5.10 Generic_144500-19 sun4v sparc SUNW,Sun-Blade-T6320

---------- Post updated at...
2,158
Posted By V1l1h1
it is a UNIX server
it is a UNIX server
2,158
Posted By V1l1h1
Thank you for the quick reply.. Does it...
Thank you for the quick reply..

Does it move?
No.

Do you want the substring after the first underscore in field 8?
Yes.. I would like determine the "*.JPG" name after the first...
2,158
Posted By V1l1h1
Find and add a field for an input file
Hello Sir/Madam,

I'm new to UNIX and wondering if I can process a find & add using AWK command in UNIX?

requirements: I have to find *.JPG field for each line in the input file and add it as...
Showing results 1 to 23 of 23

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