To source or sourcing means to get settings from a shell script "imported" into your current shell. Works like
So if there is something important set or exported for your environment in .profile, it will be "sourced" by the additional dot in the front of it.
That the files/shell scripts should be executable by the user of that crontab he meant.
Hi all,
I have written a shell script which sends emails with attachments to our clients. All our attachments are simple flat files (.txt format).
The script is working fine and sending the attachments to the mail-ids except that, when i am sending the attachments to non-outlook users (Like... (6 Replies)
Hi everyone,
I have a shell script that I use to send some emails with attachments. Based on the attachment file that is being sent, I choose the recipient.
My file_list.txt looks like this
CAJ.txt;sm@email.com
KXLD.txt;jc@email.com
I do a grep on this file to look for the file name and... (3 Replies)
hi guys,
I need a shell script to send mail automatically to my personal mail id like xxxx@hotmail.com but while experimenting with "mail" command I faced following problems.
cat text1.txt | mail -s 'test mail' xxxx@hotmail.com
command successfully executed
but while
checking for... (4 Replies)
Hi, i was looking for an answer for some trouble im having runing a script in the cron, thing is, that when i run it manually it works just fine. But when cron runs it, it just doenst work. I saw a reply on a similar subject, suggesting that the . .profile worked for you, but im kind of... (0 Replies)
Hi, i was looking for an answer for some trouble im having runing a script in the cron, thing is, that when i run it manually it works just fine. But when cron runs it, it just doenst work. I saw a reply on a similar subject, suggesting that the . .profile worked for you, but im kind of... (9 Replies)
Hi Guys,
I do have a shell script that I scheduled to run via the cron but when the script don't run.
But when I run the script manually it does run perfectly...
What might be the problem?
Thanks. (1 Reply)
Can anyone help me out how to send the email without the word success
while sending to the recipient.
echo "success" | mailx -s "webshell instance has been started noiw" implementation@tkcl.com (8 Replies)
Hi there,
Now I'm facing error regarding running shell script via cron.
The shell script which is required to get value from database.
Below is the main part of shell script.
#/bin/bash
#connect to database(1)
db2 connect to $database user xxxx using yyyy
#set values from... (3 Replies)