Search Results

Search: Posts Made By: rechever
2,767
Posted By rechever
Here is the complete script, now I am getting the...
Here is the complete script, now I am getting the following error:
PL/SQL procedure successfully completed.
Elapsed: 00:00:00.04
Successfully executed the szpcal1.sql script...
2,767
Posted By rechever
Problems coping a file in a shl script
I have the following in a shl script:

SCRIPT_PATH="/u01/app/banner/test/skid/plus/";
FILE_PATH="/nfs/mercury/u03/banner/test/skid/log";
LIST_FILE_PATH="/u01/banjobs/TEST";...
4,410
Posted By rechever
I am getting this errors: ...
I am getting this errors:
spinel:/home/nelnet$ sh payfile_decrypt2.shl 'PRCT'
payfile_decrypt2.shl[31]: LocalDir: not found.
payfile_decrypt2.shl[41]: FileName: not found....
4,410
Posted By rechever
Not, the file is like this ...
Not, the file is like this
dailypayments_sfs_payment_201011151800.dat

where 1800 is always the time (6pm) and 20101115 (date) yyyymmdd
and this is dailypayments_sfs_payment (always the same...
4,410
Posted By rechever
Need to decrypt a file in a directory (SHL script)
I need to decrypt a file in a directory, I need to write a shl scrip & cron job
How I find the files in the directory:
the file is like this:

dailypayments_sfs_payment_201011151800.dat -d
...
2,639
Posted By rechever
Let me see if I can clarify this better: (new a...
Let me see if I can clarify this better: (new a shl scripts and under some pressure to finish this)

I need to take a file from a directory, the last version so I am doing something like this:
...
2,639
Posted By rechever
gzip and encrypted in a shl script
After I move the file to a directory, I need to gzip and encrypted.
I never do this in a shl script, I do it from the command line and it works..
cd /home/nelnet

spinel:/home/nelnet$ gpg -e...
1,377
Posted By rechever
Thanks Jim, I agree but she is not a nice human...
Thanks Jim, I agree but she is not a nice human being(believe me!)

After I move the file to that directory, I need to gzip and encrypted.
I never do this in a shl script, I do it from the...
1,377
Posted By rechever
last file in a directory in a shl script
I want to capture a last file in a directory in a shl scrip

Cd to the directory
$last ls -1 *the_bills.dat* | tail -1

This is not problem, but I need to copy that file to another...
2,787
Posted By rechever
Is this a permission issue I got this shl that runs okay in one data base but not in another DB
Is this a permission issue I got this shl that runs okay in one data base but not in another DB in UNIX
i changed the real names for xxx for this post


!/bin/ksh
set -x
##SID="$1";...
1,393
Posted By rechever
It does not work when I put the backticks ...
It does not work
when I put the backticks
UpLoadFileName=`$(ls -rt | tail -1)`
it just sit there
when I do the ='$(ls -rt | tail -1)'
don't do anything.. :mad:
1,393
Posted By rechever
I have problems ftp'in a file
I have a directory in WINDOWS with a series of files like this:


3526_334690.dat
3526_337092.dat
3526_337933.dat

I want to retrieve the last one and FTP to a unix directory
I have...
2,655
Posted By rechever
Well, I am getting the following: Here is the...
Well, I am getting the following:
Here is the directory in unix
N:\orgs\Financial Aid\CSSIDOCLoad (explore)
here is my piece of code:


CDRemoteDir= 'cd N:\orgs\"Financial Aid"\"CSSIDOCLoad"...
2,655
Posted By rechever
How I can capture the last file in a directory in windows
If I have a series of file like this in a windows directory


3306 Dec 16 13:16 3526_334101.dat.processed
-rw-r----- 1 banjobs banner 6612 Dec 16 13:18 3526_334898.dat
-rw-r----- 1 banjobs...
4,066
Posted By rechever
This code works in the command line but not in a shl script
When I run this code from the command line works

spinel.middlebury.edu:/u02/sct/banner/bandev2/middlebury/shl:DEV2$ ls ef*
eftseq.dat...
2,481
Posted By rechever
using a file with a sequence to rename another one
Thank you this is helpful, but still not working this is what I got
the first part works the ftp I get the 04051000.DSB file,
now I want to rename that file with the result of

get...
2,481
Posted By rechever
Renaming a file use another file as a sequence calling a shl
have this shl that will FTP a file from the a directory in windows to UNIX, It get the name of the file stored in this variable $UpLoadFileName then put in the local directory...
1,760
Posted By rechever
Ineed to end with 1235 no 5 1234 + 1 = 1235
Ineed to end with 1235 no 5
1234 + 1 = 1235
1,760
Posted By rechever
Adding values concatenating values
I have the following script in a shell
# The start of a filename


file=$(ls -tr $EMT*.dat | tail -1) # Select the latest file echo $file
file_seq=$( <...
2,641
Posted By rechever
Reading a file (one record) in a SHL script
I am trying to read a file in a shl script (only one record) and stored in a variable file_number

I got the following

read -u $BANNER_HOME/xxxxxxx/misc/EFTSQL.dat file_number
file_number2 =...
2,495
Posted By rechever
I try this code This is in the SHL script (it...
I try this code
This is in the SHL script (it is actually EFT)
is the prl code, can I put perl code in a shl script?
Anyway it is not working..


# The start of a filename
file=$(ls -tr...
2,495
Posted By rechever
separate numbers in a file
I have this command in a shl (UNIX) to find the lates file that start with EMT in a directory

file=$(ls -tr $EMT*.dat | tail -1) # Select the latest file

It finds:
EMT345.dat
then I have to...
2,433
Posted By rechever
[code] Excuse my ignorance, but If I execute...
[code]
Excuse my ignorance, but If I execute this command in the command line in UNIX works, but how I put this in a shl script?

I have the following
[code]
file=$(ls -tr $EFT*.dat | tail...
2,433
Posted By rechever
Rename a file sequencially in UNIX
I need to be able to look for the last file in a dirctory in UNIX,
the file satrt with EFT
so this work file=$(ls -tr $EFT*.dat | tail -1) # Select the latest file
my last file is EFT1234.dat ...
2,530
Posted By rechever
How to look for the last file and rename it (sequencially, increment by one)
I need to Ftp a file to a UNIX directory from a windows directory, the file needs to be put sequencially in the UNIX directory , for example: I get the file from the windows directory with the...
Showing results 1 to 25 of 43

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