ls ./ascii -r>dir_list.txt
for MYFILE in `awk '{ print $1 }' files_list.txt`
do
for MYDIRFILE in `awk '{ print $1 }' dir_list.txt`
do
#if [[ $MYFILE = $MYDIRFILE ]]OB
if expr "$MYDIRFILE" : ".*$MYFILE" != 0
then
if [[ $MYFILE != $MYDIRFILE ]]
then
mv ./ascii/$MYDIRFILE ./ascii/$MYFILE
fi
echo "Preparing to send file $MYDIRFILE"
fi
done
done
---------------------
this is what i did to collect the files tobe transfered.
my proble m now is to send the files with CFT.
Can u help me ?
pourrais-tu m'aider ?
ich bin .... ?
Well you have at least minimum 2 solutions.
But I'm full of work and I have to take time to explain you the possible solutions.
Please wait this evenig (in France) for my answer.
Well, to send a file with CFT, you must have first the good environment with path to CFT executables and other environment variables like theses :
If you don't have them, search the "ENV_CFT" file and source it.
After, to send a file, you have to use CFTUTIL like this :
I you didn't define a CFTSEND parameter in CFT, and sending a text file, you must use "FTYPE=T" in the command.
Now, if I understand correctly your script, you have to do this :
On the other side (partner SABDE), you will find the original name of the file in the CFT variable "&PARM" (without the path).
To see the status of your transfers, use the command:
OK ?
I am trying to use bash to automate the scan of a specific directory using clamav. Having this in place is a network requirement. The below is an attempt to:
1. count the extensions (.txt, .jpeg) in a directory and write them to a virus-scan.log (section in bold)
2. scan each folder in the... (6 Replies)
i want to scan all open and closed ports on a server. how can i do this.
i intend on using nmap, but if there are better ways to do it, please let me know.
i understand there are a total of 6335 allowable ports on a server.
so out of that 6335, i want to know which is open or closed. id... (1 Reply)
In Solaris the administrator has to update /kernel/drv/sd.conf file to tell the sd driver to scan for a broader range of scsi devices.
Can someone please tell me what file needs to be update in Redhat Linux 5 for the same.
Second part of the question is WWN for HBA's can be found (atleast in my... (1 Reply)
Hello all
I want to help
I have some compressed files on the system
When you want to unzip these files
Delete any file which symlink
"ln -s"
{{
I need script is necessary
Script contain:
Any operation to decompress the system is doing to delete any symlink... (0 Replies)
Hi,
I am fairly new to unix/linux scripting (about 1 week) and have written a script to scan a directory for xml files, if found call and oracle procedure passing in the file name and then move the file once processed to an archive area.
Now everything seems to be working except when there... (3 Replies)
I am really stuck on a issue and have not been able to find a solution.
With the code below I need to not only scan the current directory which as you can see below is...
/lcl/sit/apps/Tivoli/
But I also want it to scan all sub directories it finds under Tivoli as well for the same thing... (2 Replies)
i have a script to look for a file, but it moves a file that's being used.
i want to use:
if file exists > 0, and not being updated/used in the last 2 minutes, move to /tmp
i can do this much:
if
then
mv filename.txt /tmp
else
exit
fi
or how can i check if... (3 Replies)
Can any one please let me know below ones
1) How to Perform the Port Scan in Solaris Environment and how to block the unwanted Ports.
2) How to know whether particular Port is listning the requests or not?
Thanks
Ramkumar.B (7 Replies)