Search Results

Search: Posts Made By: chrchcol
7,691
Posted By chrchcol
OK here is the code snippet I am using ...
OK here is the code snippet I am using


SUBJ="Uploads"
TO="chris.collins@fuse.net"

(
cat << !
To : ${TO}
Subject : ${SUBJ}

!

cat /tmp/status





) | sendmail -F "...
7,691
Posted By chrchcol
Ok one last question, I would like to send the...
Ok one last question, I would like to send the attachment as a text body of the email.

Chris
7,691
Posted By chrchcol
NVM I solved it the F has to be a capital f
NVM I solved it the F has to be a capital f
7,691
Posted By chrchcol
What is happening is its sending out the mail...
What is happening is its sending out the mail still as root!

Chris
7,691
Posted By chrchcol
I know this should work and it does not error...
I know this should work and it does not error out, however is not working, any ideas?

Chris
7,691
Posted By chrchcol
This is what I tried and it worked but it did not...
This is what I tried and it worked but it did not solve my issue with the from field. Is there a way to make the from email address from any email address not a username?


SUBJ="Send mail from...
7,691
Posted By chrchcol
Sendmail questions
Ok I have a txt file being mailed out from a script using mail function. However I need to add from field to it. So I thought of sendmail.

Can anyone, tell me the correct way to format sendmail...
4,392
Posted By chrchcol
On this paticular server root is blocked to every...
On this paticular server root is blocked to every ip but mine and one other. Both trusted,
4,392
Posted By chrchcol
Sorry I should have been a little more clearer. ...
Sorry I should have been a little more clearer.

What I mean is suppose I wanted to write a simple script that would run su (username) and would add to the password field automatically without...
4,392
Posted By chrchcol
Is there a way to automatically prepopulate a password field?
I want to know if there is a way that I can right a script that will su to root and prepopulate the password field?
5,476
Posted By chrchcol
Well this is my actual script ...
Well this is my actual script

dir=/home/httpd/vhosts/chris*/web_users/chris2
email=info@domain.com
hours=6

let t=$hours*60
cd $dir

find . ! -name '.*' -type f -cmin "-$t" > holder
cut...
5,476
Posted By chrchcol
How can I make the for command check to see if a file is empty before executing?
Here is the command in question for f in $(<uploads); do .

I only want this to execute if uploads is not empty. If uploads is empty I want the script to quit, actually before the for command. If...
1,865
Posted By chrchcol
I have the if commands working now. ...
I have the if commands working now.


Suppose that I wanted to include a command such as

if [ "$X" = "quit" ]; then


what would follow the then that would close out the script without...
1,865
Posted By chrchcol
Can someone review my code tell me where I am going wrong?
Started writing my code.

my read input is not even asking nor working?

And I get a EOF script error.


echo "1) aragorn.domain.net"
echo "2) marvel.domain.net"
echo "3)...
4,646
Posted By chrchcol
I actually do have one last question, is there a...
I actually do have one last question, is there a way to specify a different email address than the user thats logged in in this command. A From Field?


mail -s "Uploads!" -c "$email" susant < ...
4,646
Posted By chrchcol
I found out the mail format was exactly the way I...
I found out the mail format was exactly the way I wanted it. My email client was not showing true text. So I had to set it to show the original format. I can't believe I spent 3 days debugging a...
4,646
Posted By chrchcol
Ok that didn't work, does anyone have any...
Ok that didn't work, does anyone have any suggestions about the best way to post this?

Do i need to quote each line?
4,646
Posted By chrchcol
Here is some sample output
I hope this posts correctly


chris.domain.com/web_users/chris2/red 5 Jul-25-03:06 99e4e22dda38bc735e56341dedcf4ba5 ...
Forum: Cybersecurity 07-26-2006
5,700
Posted By chrchcol
We need to setup up a SSH passthrough server.
I have been reading alot and we want to setup a secure ssh main login server that will handle logins for all our other servers. I have found some information but I need a really good rescource.
...
4,729
Posted By chrchcol
I have read that, I guess what I am asking is I...
I have read that, I guess what I am asking is I have a formatted email with columns. When I attach it as an attachment with uuencode, and open with say wordpad, the columns are lined up and intact. ...
4,729
Posted By chrchcol
What is the correct syntax with Mime types and Sendmail
The format of a text file needs to be protected. I also need to send the file plain text. When I send it as an attachement with uuencode it protects the format. However we need to be a text...
4,729
Posted By chrchcol
What is the correct syntax with Mime types and Sendmail
The format of a text file needs to be protected. I also need to send the file plain text. When I send it as an attachement with uuencode it protects the format. However we need to be a text...
4,646
Posted By chrchcol
THIS IS A NEW ISSUE. I am having mail command problems.
Here is the code
[CODE]
printf "%-75s%+10s %5s %1s \n" $s $z $x $y >> status

mail -s "Uploads!" -c "chris.collins@fuse.net" susant < status




Here are the two issues-

1) the...
4,646
Posted By chrchcol
You are an absolute life saver! Thank you
You are an absolute life saver! Thank you
4,646
Posted By chrchcol
What I mean is whats supposed to happen is all of...
What I mean is whats supposed to happen is all of the output should go to one text file status. Whats happening is printf is copying one line at a time and creating a new status txt file every time....
Showing results 1 to 25 of 36

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