![]() |
|
|
|
|
|||||||
| Forums | Portal | Register | Forum Rules | FAQ | Contribute | Members List | Arcade | Search | Today's Posts | Mark Forums Read |
| Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts here. |
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Calling expect scripts from other expect scripts | seva | Shell Programming and Scripting | 0 | 04-03-2008 10:45 AM |
| FTP Scripts | raghav1982 | Shell Programming and Scripting | 27 | 12-07-2007 03:38 AM |
| use of ssh in scripts | esham | Shell Programming and Scripting | 7 | 11-16-2005 08:27 AM |
| Help with GDL to SQL scripts | ch4r1e5 | Shell Programming and Scripting | 0 | 10-31-2005 02:51 PM |
| using su in scripts | uchachra | UNIX for Dummies Questions & Answers | 3 | 03-11-2002 10:24 AM |
|
|
Submit Tools | LinkBack | Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
Three scripts I need help with.
Hey guys!
First off, I want to say thanks in advance to whoever can give me a hand here. Alright, so I need three scripts--these are probably way easier than i'm making them out to be, but i can't seem to figure it out. 1-A script that detects if/when a specific user logs in to the system. When the user logs in, it would alert me in some way (say email). The catch is, in order to prevent spam, the alert would only be emailed once per session the user is on. 2-A script that gives the "family tree" of a particular process (pid 1). 3-the last script is to send a "SMS' message to a cell phone. I'm not sure how this would even be done....connect through a website (since most providers let you send text messages free to their customers). Again, kudos to anyone who can figure this stuff out....you are better than me. -kallell |
| Forum Sponsor | ||
|
|
|
#2
|
|||
|
|||
|
a
I got the SMS part to work, i think the hardest one will be the first script. If anyone has any ideas...or even to point in the right direction it would be appreciated.
|
|
#3
|
||||
|
||||
|
Quote:
Quote:
Code:
$ pstree -a 23437
screen
+-bash
¦ +-su - root
+-bash
¦ +-centerim-utf8 --no-xtitles --ascii -a
+-bash
¦ +-mutt
+-bash
¦ +-emacs etc/style.css
+-bash
¦ +-man pstree
¦ +-pager -s
+-bash
+-pstree -a 23437
|
|
#4
|
|||
|
|||
|
alright, i think i got them all working now...just the last just seems ugly as hell (ancestor one).
|
|||
| Google The UNIX and Linux Forums |
| Thread Tools | Search this Thread |
| Display Modes | |
|
|