Search Results

Search: Posts Made By: pasaico
4,293
Posted By pasaico
any idea why sometimes xlsx attachments get...
any idea why sometimes xlsx attachments get corrupt to the recipient?
4,293
Posted By pasaico
Thank you for suggest. I have at most a 200...
Thank you for suggest.
I have at most a 200 file events
Regarding the possibility of SPAM problems, EMAIL resolved with authenticated SMTP servers with 5000 emails sent daily


I will try your...
4,293
Posted By pasaico
If there are no email addresses, the file is...
If there are no email addresses, the file is moved into a directory named ERROR


error=${HOTFOLDER}/$(date +'ERROR-%F')
mkdir -p "${error}" && mv "${fullpath}" "${error}"
why...
4,293
Posted By pasaico
address.txt contain: ...
address.txt contain:

1,mail@mail.com,mail2@mail.com
2,mail2@mail.com
3,mail3@mail.com,mail4@mail.com


if i put a file 1.xlsx it's check with $mail if present in address.txt and generate...
4,293
Posted By pasaico
thank you very much your suggestions have been...
thank you very much your suggestions have been very useful,

I would like to add the function to check the email from a text file.
If the variable $mail is present, togheter other event (CREATE...
4,293
Posted By pasaico
Maybe you're right, but the strange thing is that...
Maybe you're right, but the strange thing is that this script worked for months.

Now anyway
I also modified your script by inserting sleep 10s before MKDIR and it works ok

#!/bin/bash...
4,293
Posted By pasaico
HOTFOLDER is a shared directory with samba,...
HOTFOLDER is a shared directory with samba, empty.

The files are copied into HOTFOLDER which is then processed using a script that automatically sends emails with attachments to the .xlsx file.
...
4,293
Posted By pasaico
Andrew, I had already tried with the -m option...
Andrew,
I had already tried with the -m option but it does not work, not even a file is moved

while inotifywait -m -e create /HOTFOLDER/ ; do

---------- Post updated at 02:47 PM ----------...
4,293
Posted By pasaico
I do not understand what you mean by directory...
I do not understand what you mean by directory list.
I copy all the file in one go
the command mv all .xlsx files in one go or not,
move files at once or not? I need it to be one by one.
4,293
Posted By pasaico
Thank you Rudic for the answer I have copied...
Thank you Rudic for the answer

I have copied in the HOTFOLDER 1.xlsx 2.xlsx 3.xlsx 4.xlsx
as you can see, only the 4.xlsx number was processed and the others remained in the HOTFOLDER

after...
4,293
Posted By pasaico
Thnk you for your answer. after I will try your...
Thnk you for your answer. after I will try your suggestion
the problem with myscript:
If in the HOTFOLDER there are 10 .xlsx files and then I copy a new one, the loop works all file to the end.
...
4,293
Posted By pasaico
Hotfolder with inotify-tools, loop FOR not working
I can not understand why this little script with a loop processes only one file.

At boot in /etc/rc.local i wrote:

/usr/local/bin/./myscript &

This is myscript:

#!/bin/bash
...
1,970
Posted By pasaico
for fullname in *.zip; do ...
for fullname in *.zip; do
filename="${fullname##*/}"
awkvar=$(echo $filename | cut -d_ -f2-2)
output=$(awk -F ',' -v var="$awkvar" '$1==var {print $2,$3}' spreadsheet.txt)
echo $output
...
1,970
Posted By pasaico
$awkvar is match with FIELD1, FIELD2, FIELD3 ...
$awkvar is match with FIELD1, FIELD2, FIELD3
awk print line that is equal to $awkvar
input file is correct, i have check it with cat -v
1,970
Posted By pasaico
i have modified my copying error
i have modified
my copying error
1,970
Posted By pasaico
awk problem
i have an email list in file.txt with comma separated

line1 - FIELD1,pippo@gmail.com,darth@gmail.com
line2 - FIELD2,pippo@gmail.com,darth@gmail.com,sampei@gmail.com

output=(awk -F ','...
Showing results 1 to 16 of 16

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