Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Creating file from .forward

Status
Not open for further replies.

jxfish2

Technical User
Jan 24, 2002
183
US
I've done this in the distant past, but can't remember the exact syntax of the command. So, any help would be much appreciated.

I want a particular user to parse email when it comes in, by receiving the email message, searching its content for keywords, then, if a specific keyword exists, do something.

In the past, I've done something like this: (But I can't seem to get the exact syntax again.)

.forward

\user_id, "|cat > ~user_id/tmp_file"
"|~user_id/check_tmp_file.ksh"

-OR-

\user_id, "|cat > ~user_id/tmp_file; ~user_id/check_tmp_file.ksh"

When I send a message to this user ID, the user ID gets the message, but the tmp_file is never created.

Thanks in advance, and have a very happy Thanksgiving...

Joe F.
 
you could just:
\user_id, "~user_id/tmp_file; ~user_id/check_tmp_file.ksh"

maybe ...

or:
\user_id, "> ~user_id/tmp_file; ~user_id/check_tmp_file.ksh"

if you need the > sign.
 
Thanks Jad,

I'll try it here in a few minutes...

Joe F.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top