Search Results

Search: Posts Made By: brunlea
2,629
Posted By brunlea
That's brilliant. Thanks ---------- Post...
That's brilliant. Thanks

---------- Post updated at 08:41 AM ---------- Previous update was at 08:00 AM ----------

I am trying to do the copy all in one go rather than one file at a time, by...
2,629
Posted By brunlea
Thanks for both them solutions. However, i need...
Thanks for both them solutions. However, i need them modifying slightly. There will always be corresponding .log file, but the other file may have some other extension that is not known, so it could...
2,629
Posted By brunlea
Assigning file to a variable
Hi,

I have a list of files in a directory. Each file has a .txt and a .log extension i.e. file.txt & file.log, file1.txt & file1.log etc. The file with the .log extension may not always exist...
776
Posted By brunlea
Programming logic help
Hi,

I was having a problem regarding this thread: https://www.unix.com/shell-programming-scripting/225221-setting-variable-using-variables-loop.html

I have not been able to solve that issue. So...
1,051
Posted By brunlea
Setting a variable using variables in a loop
Hi,

I am having a bit of trouble with the below code:

file=/path/to/file
for i in 03 06 07 21; do
if [ -f $file-$i ]; then
eval count$i=`grep -c word $file-$i`
fi
done

Totalcount=0...
1,645
Posted By brunlea
So i guess this means that if there is any...
So i guess this means that if there is any problem in sending file1.log completely (or file2.log), then there will be an error output from the scp command? If so, then this servers my purpose well as...
1,645
Posted By brunlea
scp one file after another
Hi,

I am looking to scp two files in one go, where the second file is sent only if the first one has been fully copied across. I know of the following command that is used to copy multiple files...
1,426
Posted By brunlea
The file gets processed as soon as it is...
The file gets processed as soon as it is received, this is why i need to ensure that the full file has been received. The file processer can check first for a flag file etc.

No other tools are...
1,426
Posted By brunlea
That is one approach, but if there was an...
That is one approach, but if there was an incomplete transfer of the file i.e. if the contents were not complete, then the .done file would still be created which would be a problem. Or when using...
1,426
Posted By brunlea
Sendig a file and a confirm file
Hi,

I need to send a file from one server to at a set time interval, once the file has been completely sent, it is then processed on the receiving server. Is there a way that i can send a file...
1,868
Posted By brunlea
That looks a lot cleaner to me and i understand...
That looks a lot cleaner to me and i understand it better! Thanks
1,868
Posted By brunlea
I have used this one. Works perfectly! ...
I have used this one. Works perfectly!

Thanks to all those who contributed.
1,868
Posted By brunlea
That does not work as i forgot to mention that...
That does not work as i forgot to mention that there are other lines also in the file in the format
<m:string>zzz1234ZZ</m:string>

Is there a way that command can be adjusted to get the string...
1,868
Posted By brunlea
Extracting a string from a line
Hi,

I have searched all over the forums for a problem similar to mine. I have found many but i have not been able to get them to work for me unfortunately!

What i am attempting to do is to...
1,602
Posted By brunlea
Using AIX 5.2. Scripting in #!\bin\sh. Ok -...
Using AIX 5.2. Scripting in #!\bin\sh.

Ok - Just to clarify what i am trying to do. I am trying to get the creation of the file to be as efficient as possible. Or there may be another way of...
1,602
Posted By brunlea
How can i speed this script up?
Hi,

Im quite new to scripting and would like a bit of assistance with trying to speed up the following script. At the moment it is quite slow....

Any way to improve it?


total=111120...
Showing results 1 to 16 of 16

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