LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 05-30-2014, 02:08 PM   #1
kunalks
Member
 
Registered: Dec 2013
Posts: 53

Rep: Reputation: Disabled
Linux Vpnc ND SEND mail.


Hallo guys

I have one problem that i have vpn connection via vpnc to other enviorment and this other enviorment only provide 50 gb space to us and we are always copying file there and and every 2nd day this space from other part is full and my script get stucked.

So i just want to set up another script that will always check the space free size and as it go above 80% it send me email that i should delte some files from there.

here are some suggestion which i can tell you.

1_: First check vpnc connecton is established or not ?
2: Than if not then establised vpn connection and than run df -h command and check the free size of space and then send me email .

can some one please help me out ?

how to check vpnc is running or not?
how to established aconnection ?
how to send email

thanks
 
Old 06-01-2014, 05:13 PM   #2
dijetlo
Senior Member
 
Registered: Jan 2009
Location: RHELtopia....
Distribution: Solaris 11.2/Slackware/RHEL/
Posts: 1,491
Blog Entries: 2

Rep: Reputation: Disabled
Quote:
how to check vpnc is running or not?
if ( -z "ps -eo com | grep -i vpnc")
Quote:
how to established a connection ?
There are a million shell scripts on the internet to handle ssh connections, google one
Quote:
how to send email
It's probably easier if you have the script exit with a code, say the % of the disk that's filled up on the remote host and then just write it to a file on your desktop.

Last edited by dijetlo; 06-01-2014 at 05:16 PM.
 
Old 06-02-2014, 06:52 PM   #3
kunalks
Member
 
Registered: Dec 2013
Posts: 53

Original Poster
Rep: Reputation: Disabled
I am using sendmail in linux to send email but i having bouncing emailbback problemm



SMTP. example.org said: 550 no RDNS entry for X.X.X.X

also configure send mail?
 
Old 06-02-2014, 08:06 PM   #4
dijetlo
Senior Member
 
Registered: Jan 2009
Location: RHELtopia....
Distribution: Solaris 11.2/Slackware/RHEL/
Posts: 1,491
Blog Entries: 2

Rep: Reputation: Disabled
Quote:
also configure send mail?
Yup, if you want on site email.
A couple of questions.
Do you (or your company) have your own domain?
Is it hosted (the companies internet or web server isn't in the building with you, it's on a paid for site)
Do they offer email as part of the hosting package? Many companies do.
Did we get the other problem resolved? It's best to try to set clear goals and then accomplish them in sequence rather than doing part of this and then part of that.
 
Old 06-02-2014, 08:17 PM   #5
kunalks
Member
 
Registered: Dec 2013
Posts: 53

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by dijetlo View Post
Yup, if you want on site email.
A couple of questions.
Do you (or your company) have your own domain?
Is it hosted (the companies internet or web server isn't in the building with you, it's on a paid for site)
Do they offer email as part of the hosting package? Many companies do.
Did we get the other problem resolved? It's best to try to set clear goals and then accomplish them in sequence rather than doing part of this and then part of that.
Look! let me clear my needs

I just want to configure sendmail because on my linux server there is vpn connection and i want to know when this vpn space is 80% full then i get email to my private email account,

I have written the script for checking the space and everything, just need to know how to configure email that i can send to my private domain email account.

yes i have my own domain, and mail server.
 
Old 06-02-2014, 09:37 PM   #6
dijetlo
Senior Member
 
Registered: Jan 2009
Location: RHELtopia....
Distribution: Solaris 11.2/Slackware/RHEL/
Posts: 1,491
Blog Entries: 2

Rep: Reputation: Disabled
Quote:
I just want to configure sendmail because on my linux server there is vpn connection and i want to know when this vpn space is 80% full then i get email to my private email account,
What happened to just writing it to a file on your desktop
Quote:
Look! let me clear my needs
Here's your solution, sorry for not taking care of your needs faster,
 
Old 06-02-2014, 09:42 PM   #7
kunalks
Member
 
Registered: Dec 2013
Posts: 53

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by dijetlo View Post
What happened to just writing it to a file on your desktop


Here's your solution, sorry for not taking care of your needs faster,
Thanks alot friend!

I just wanted to share only my problems, which i was facing regarding this configuration,

I didnt understand your comment about
Quote:
What happened to just writing it to a file on your desktop
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Want to use my linux box to send to send a mail and attach a file. Need help omicky83 Linux - Newbie 1 10-02-2013 05:00 PM
I m new to Linux ,need help to send mail with attachment via mail command Rhel 5.3 panks1910 Linux - Newbie 1 12-14-2012 12:56 PM
[SOLVED] How to send internal e-mail on Linux, using the mail command? sl33p Linux - Newbie 6 06-04-2009 08:13 PM
with the linux proxi, backend pop3 mail client can not receive mail and send mail rubin823 Linux - Networking 0 12-21-2006 10:06 PM
Cannot send mail with mail() command in PHP 4.3.4, Apache 2.0.48, Mandrake Linux 10 arcanum Linux - General 3 06-27-2004 06:06 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 07:30 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration