• We’re currently investigating an issue related to the forum theme and styling that is impacting page layout and visual formatting. The problem has been identified, and we are actively working on a resolution. There is no impact to user data or functionality, this is strictly a front-end display issue. We’ll post an update once the fix has been deployed. Thanks for your patience while we get this sorted.

Help with a short script

H54

Member
Can anyone take a look at this and tell me what I'm doing wrong?

I want to create an 'at' job that sends me a reminder. If I'm online, echo to terminal, else, email to myself.

For some reason, the email portion will not work.

##


1 #!/usr/dt/bin/dtksh
2
3 status=`finger | grep -c $USER`
4 terminal=`tty | cut -d/ -f4`
5
6 at $1 $2 $3 <<!
7
8 if "$status" -ge 1
9 then
10 echo $* > /dev/pts/$terminal
11 else
12 echo $* > elm -s Alert name@someemail.com;
13 endif
14 !
15
16 exit
 
Figure I would start with the basics:

elm [-a] [-c] [-dn] [-fx] [-h] [-k] [-K] [-m] [-sx] [-V] [-v] [-w] [-z]

*Before elm can be ran an elm configuration file .elm file must be on the root or root of the user profile.
 
Thanks for the response. Elm is set up as I've been using it for a while. I finally got the script working but I had to create a new file with pretty much identical code. I think there is something funky going on with the server.
 
Back
Top