Need to create script that gives me network computer information.
ProgrammingThis forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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.
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.
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?
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
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.