Viewing 1 to 3 of 3 items
Tag Archives: Path

Korn Shell code to send attachments with mailx and uuencode?

I need to attach a file with mailx but at the moment I’m not having a lot of success. Here’s my code: subject=”Something happened” to=”” body=”Attachment Test” attachment=/path/to/somefile.csv uuencode $attachment | mailx -s “$subject” “$to” << EOF The message is ready to be sent with the following file or link attachments: somefile.csv Note: To protect  Full Article…


.sh file syntax checking script

This isn’t a question–its a solution! Below is a script that I wrote for my own script file development which does what the title says. Its the closest that you can get to compiling what are otherwise purely interpreted script files. I offer it here simply for the benefit of anyone else writing script files.  Full Article…