hosted by liquidweb


Go Back   Web Hosting Talk : Web Hosting Main Forums : Programming Discussion : Request Code to Script ...
Reply

Programming Discussion Discussions related to web programming languages and other related issues. Topics may include configuration, optimization, practical usage and database connectivity.
Forum Jump

Request Code to Script ...

Reply Post New Thread In Programming Discussion Subscription
 
Send news tip View All Posts Thread Tools Search this Thread Display Modes
  #1  
Old 03-18-2011, 12:43 PM
no one no one is offline
Junior Guru Wannabe
 
Join Date: Feb 2011
Posts: 76

Request Code to Script ...


Hi every one how are you ?
I want write a script

The functionality of the program when installing any software on the server is sending a message to mail a pre-specified content of the message is the program was installed on the server and software is also pre-defined

Reply With Quote


Sponsored Links
  #2  
Old 03-18-2011, 06:41 PM
nafirici nafirici is offline
Junior Guru Wannabe
 
Join Date: Mar 2011
Posts: 42
so are you asking for us to write you a script to do this? What language are you planning to have this written in? If it's php, you could start by looking at the mail() function.

Reply With Quote
  #3  
Old 03-20-2011, 02:58 PM
no one no one is offline
Junior Guru Wannabe
 
Join Date: Feb 2011
Posts: 76
thanx for your reply
I want bash or python or perl
the scripts should install in the server by ssh root

Reply With Quote
Sponsored Links
  #4  
Old 03-20-2011, 11:07 PM
coderiser coderiser is offline
Disabled
 
Join Date: Jan 2011
Posts: 300
you might want to post in a python or perl section to get the best results

Reply With Quote
  #5  
Old 03-27-2011, 12:56 PM
no one no one is offline
Junior Guru Wannabe
 
Join Date: Feb 2011
Posts: 76
Quote:
Originally Posted by coderiser View Post
you might want to post in a python or perl section to get the best results
OK would u show me the way to do that ?

Reply With Quote
  #6  
Old 03-30-2011, 02:17 PM
no one no one is offline
Junior Guru Wannabe
 
Join Date: Feb 2011
Posts: 76
Please would you help me with this Project ??

Reply With Quote
  #7  
Old 03-30-2011, 04:58 PM
foobic foobic is online now
Community Liaison 2.0
 
Join Date: Feb 2005
Location: Australia
Posts: 5,107
Please don't keep on bumping this thread. It's not reasonable to expect that anyone will write your program for you.

If you want to make progress with your project:

1. Specify in detail what this program is to do - your OP is very vague.
Quote:
Originally Posted by no one View Post
when installing any software on the server
When who installs software? What software (examples)? How will they be installing it?
Quote:
is sending a message to mail a pre-specified content of the message is the program was installed on the server
Ok (I think).

Quote:
and software is also pre-defined
What do you mean by that?

2. Choose a language and attempt to write this program yourself. If you have problems, you get errors or it doesn't work as expected, post the code, the errors and what you wanted it to do when asking for help.


Edit: Alternatively if you want to employ someone to develop your program, try the Software Requests forum.

__________________
Chris

"Learn from the mistakes of others. You can never live long enough to make them all yourself." - Groucho Marx


Last edited by foobic; 03-30-2011 at 05:03 PM. Reason: Additional
Reply With Quote
  #8  
Old 03-30-2011, 05:49 PM
viGeek viGeek is offline
Russ
 
Join Date: Mar 2002
Location: Philadelphia, PA
Posts: 2,493
Confused by your question.

You can grab the return status from any command in bash and then act on that.

i.e
rpm -Ivh software.rpm
if [ $? -ne 0 ] ; then
# then your mail action for failure.
else
# action successful.
fi

__________________
Linux junkie | @ Wildbit Philadelphia, PA
Creators of: Beanstalkapp.com & Postmarkapp.com

Reply With Quote
  #9  
Old 03-31-2011, 09:56 AM
no one no one is offline
Junior Guru Wannabe
 
Join Date: Feb 2011
Posts: 76
the program language is Perl or python

and program will install by yum instal xxx

Reply With Quote
  #10  
Old 03-31-2011, 10:07 AM
bluemer bluemer is offline
Web Hosting Evangelist
 
Join Date: Jan 2011
Location: Ohio
Posts: 467
So.. Let me help you...

I want a script written for _______.(likely CentOS) Whenever a program is installed using yum I would like a E-Mail sent to ________(E-Mail Address/User) that states the program that was installed via yum, and whether it installed successfully without errors, or if it did encounter errors I would like the E-Mail to state the errors encountered.

Reply With Quote
  #11  
Old 03-31-2011, 10:13 AM
no one no one is offline
Junior Guru Wannabe
 
Join Date: Feb 2011
Posts: 76
I want send E-mail for installing with error or without
O.S = Linux - CentOS

Reply With Quote
  #12  
Old 03-31-2011, 10:35 AM
cselzer cselzer is offline
Web Hosting Master
 
Join Date: Apr 2009
Location: Pittsburgh, Pennsylvania
Posts: 582
Quote:
Originally Posted by no one View Post
I want send E-mail for installing with error or without
O.S = Linux - CentOS
Hello,

Can you write what you want in your native language perhaps, and someone can use a translator to understand you a little bit better? You're not saying what you want.

__________________
blog | resume

Reply With Quote
  #13  
Old 03-31-2011, 10:38 AM
no one no one is offline
Junior Guru Wannabe
 
Join Date: Feb 2011
Posts: 76
when root of server install a program by yum

I want the server send meesage to email

so I want script to do that

scriot by python or perl or bash any thing that can do this object

Reply With Quote
  #14  
Old 03-31-2011, 10:41 AM
cselzer cselzer is offline
Web Hosting Master
 
Join Date: Apr 2009
Location: Pittsburgh, Pennsylvania
Posts: 582
Ossec can already do this. http://www.ossec.net/

__________________
blog | resume

Reply With Quote
  #15  
Old 04-02-2011, 03:20 AM
isurus isurus is offline
Junior Guru Wannabe
 
Join Date: Mar 2007
Location: UK
Posts: 89
Can't logwatch already do this? I have never looked into it specifically, but am fairly sure that it is possible to configure logwatch to generate a report of everything that has been installed/uninstalled the previous day... presumably it can also be configured to report installation errors.

Reply With Quote
Reply

Similar Threads
Thread Thread Starter Forum Replies Last Post
Request: Code website Layout. Spitfired2s Design Offers 3 08-15-2006 03:55 AM
[REQUEST] PSD slice and code twastudios Design Offers 9 06-27-2004 11:31 PM
Request : Slice and html code BOYER Design Offers 11 03-24-2004 07:22 PM
small PHP code request JDTurbeville Programming Discussion 17 01-29-2003 04:38 AM

Related posts from TheWhir.com
Title Type Date Posted
Web Hosting Sales and Promos Roundup – April 26, 2013 Web Hosting News 2013-04-26 16:31:48
Cisco Researcher Discovers Possible Exploit Vector for DarkLeech Attacks Web Hosting News 2013-04-26 10:19:35
Prolexic Reports Key Holes in Popular DDoS Attack Tool Dirt Jumper Web Hosting News 2012-08-14 14:48:14
Whistleblower Site Cryptome Hacked, Infects PCs with Drive-By Exploits Web Hosting News 2012-02-14 14:48:24
Control Panel cPanel Launches New Apache Configuration Script Web Hosting News 2011-12-28 19:41:39


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes
Postbit Selector

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

Forum Jump
Login:
Log in with your username and password
Username:
Password:



Forgot Password?
Advertisement:
Web Hosting News:



 

X

Welcome to WebHostingTalk.com

Create your username to jump into the discussion!

WebHostingTalk.com is the largest, most influentual web hosting community on the Internet. Join us by filling in the form below.


(4 digit year)

Already a member?