|
-
Sep 13th, 2001, 08:07 PM
#1
Thread Starter
PowerPoster
-
Sep 16th, 2001, 09:00 PM
#2
Thread Starter
PowerPoster
-
Sep 16th, 2001, 09:37 PM
#3
Fanatic Member
well, if it's being run as root, the ps will give you a list of proccesses being run
uptime will give you the uptime of the machine
not sure about load average or freespace, but i know you can
who will list users, but what you want is probably finger @computername
use something like this:
Code:
#!/path/to/sh
sendmail -t<<EOF
echo "To: $1"
echo "From: root"
echo "Subject: Status"
echo "Proccess:"
echo `/path/to/ps`
echo `/path/to/uptime`
echo `/path/to/finger @`/path/to/localhost``
EOF
call like this
scriptname emailaddress
GWDASH
[b]VB6, Perl, ASP, HTML, JavaScript, VBScript, SQL, C, C++, Linux , Java, PHP, MySQL, XML[b]
-
Sep 16th, 2001, 09:40 PM
#4
Member
ps will work no matter what user you are.
-
Sep 16th, 2001, 09:43 PM
#5
Fanatic Member
correct, but it will only list the proccess of the current user if called with no options, i don't know what the options are to list proccess for a specific user
GWDASH
[b]VB6, Perl, ASP, HTML, JavaScript, VBScript, SQL, C, C++, Linux , Java, PHP, MySQL, XML[b]
-
Sep 16th, 2001, 09:44 PM
#6
Thread Starter
PowerPoster
chers fellas but what if we dont run sendmail?
Or any mail client i.e howabout if i just want to mail to another user!
And nope it wont be run as administrator?
And b4 you ask no it's not for any college assignemnt!
It's for work and i'm still learning all this stuff!
-
Sep 16th, 2001, 09:50 PM
#7
Fanatic Member
how do you send your mail then??
without sendmail, you have to talk directly to SMTP server(s).
and i doubt your entire company knows the SMTP protocol like that back of their hand
GWDASH
[b]VB6, Perl, ASP, HTML, JavaScript, VBScript, SQL, C, C++, Linux , Java, PHP, MySQL, XML[b]
-
Sep 16th, 2001, 09:53 PM
#8
Thread Starter
PowerPoster
Something like
"mail" i heard perhaps i'm confused??
-
Sep 17th, 2001, 12:40 PM
#9
Lively Member
Most unix systems will have sendmail
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|