Script cShell - help!!

Hello everyone! i'm new in this forum and I'm here because I have a huge problem with a csh script. Here the problem: I have to write a script that check the system status, more precisely I have to check if there are processes with TIME > 3 hours and if such processes exists I must send a mail to the user who started it, or a direct message right on the terminal if the user is connected. hope I was clear, sorry for my bad english, and thanks all for the help!

csh is not recommended for scripting:
Top Ten Reasons not to use the C shell
Csh problems
Csh Programming Considered Harmful

Use a POSIX shell instead.

ty cfajohnson....I need this script for an university exam...so I must do it with csh...:o any suggestions?? tnx

Homework and exam questions go here. Be sure to read, and comply to, the special rules for posting there. Thread closed.

P.S.: Forward those links to your professor if he forces you to use a certain shell.

1 Like