LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 10-28-2009, 09:32 AM   #1
rahilmaknojia
Member
 
Registered: Dec 2007
Distribution: RHEL6, CentOS6.3
Posts: 188

Rep: Reputation: 32
Need to create script that gives me network computer information.


Hello,

I am new to scripting and I have planned to create script which gives me network computer inforamtion. therefore, I want to know how to write script that sends me computer information to my email add.
 
Old 10-28-2009, 10:31 AM   #2
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,623

Rep: Reputation: 7964Reputation: 7964Reputation: 7964Reputation: 7964Reputation: 7964Reputation: 7964Reputation: 7964Reputation: 7964Reputation: 7964Reputation: 7964Reputation: 7964
Quote:
Originally Posted by rahilmaknojia View Post
Hello,

I am new to scripting and I have planned to create script which gives me network computer inforamtion. therefore, I want to know how to write script that sends me computer information to my email add.
Well, then just let us know when you get stuck, and we'll be glad to help you...be sure to post the script you've written, and what error(s) you're getting.

And you asked "how to write a script"?? Well, just open an editor, and start typing. Based on what you're wanting, I'd look at the ifconfig and netstat commands, along with the mail command.
 
Old 10-28-2009, 12:38 PM   #3
rahilmaknojia
Member
 
Registered: Dec 2007
Distribution: RHEL6, CentOS6.3
Posts: 188

Original Poster
Rep: Reputation: 32
Quote:
Originally Posted by TB0ne View Post
Well, then just let us know when you get stuck, and we'll be glad to help you...be sure to post the script you've written, and what error(s) you're getting.

And you asked "how to write a script"?? Well, just open an editor, and start typing. Based on what you're wanting, I'd look at the ifconfig and netstat commands, along with the mail command.
okay, I understand but is it possible to create a script that will automatically send information to E-mail address online?
 
Old 10-28-2009, 12:49 PM   #4
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,623

Rep: Reputation: 7964Reputation: 7964Reputation: 7964Reputation: 7964Reputation: 7964Reputation: 7964Reputation: 7964Reputation: 7964Reputation: 7964Reputation: 7964Reputation: 7964
Quote:
Originally Posted by rahilmaknojia View Post
okay, I understand but is it possible to create a script that will automatically send information to E-mail address online?
Yep, very possible. See my previous post where I mentioned the commands to look up.
 
Old 10-28-2009, 01:23 PM   #5
ta0kira
Senior Member
 
Registered: Sep 2004
Distribution: FreeBSD 9.1, Kubuntu 12.10
Posts: 3,078

Rep: Reputation: Disabled
Quote:
Originally Posted by rahilmaknojia View Post
okay, I understand but is it possible to create a script that will automatically send information to E-mail address online?
This depends on a few things, namely if you plan to send it directly from your machine (sendmail/mail/nail) or whether you'll route it through SMTP. For the former, you'll often be blocked by your LAN or ISP from accessing port 25 on remote servers. If you're going through SMTP, you'll have to be set up with an email provider to have such access.
Kevin Barry
 
  


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
Looking for information to create my own root filesystem webquinty Linux - Newbie 3 06-10-2009 08:31 AM
how to get information of the computer on ubuntu? thanks topheraholic Linux - Newbie 8 10-28-2008 07:51 AM
New Computer: Still No Display, But More Information GNewbie Linux - Hardware 5 03-15-2007 11:25 PM
Lost Login and Password Information on an Old Computer rcp3w Red Hat 2 01-07-2005 12:57 AM
How can I create a script to start my network? asdfjkl Linux - Wireless Networking 3 08-12-2004 09:12 AM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 07:16 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