Nostradamus
Technical User
I'm worthless when it comes to scripting.
I have a Linux system where I want to do the following.
I've encrypted some files using.
gpg --encrypt-files --armor -r [reciever] /my/files/*.csv
This makes a *.csv.asc file for each encrypted file. In my case over a hundred files.
I then want to email these files with the content of the file as the emails text-message.
Something like this...
mail -s [subject] user@mydomain.com < /my/files/file1-100.csv.asc
I want each .asc message to be sent as one email.
So a hundred seperate emails. How can I automate this?
Can I take the output of ls or something and put it after the < sign?
Hope you understand what I mean. If not... ask and I'll try to explain it more clearly.
thanks in advance.
/Sören
I have a Linux system where I want to do the following.
I've encrypted some files using.
gpg --encrypt-files --armor -r [reciever] /my/files/*.csv
This makes a *.csv.asc file for each encrypted file. In my case over a hundred files.
I then want to email these files with the content of the file as the emails text-message.
Something like this...
mail -s [subject] user@mydomain.com < /my/files/file1-100.csv.asc
I want each .asc message to be sent as one email.
So a hundred seperate emails. How can I automate this?
Can I take the output of ls or something and put it after the < sign?
Hope you understand what I mean. If not... ask and I'll try to explain it more clearly.
thanks in advance.
/Sören