republican-creole
Search:  

 
 
   All ForumsHot TopicsGallery






how-to block ads


 
Forums » Tech and Talk » OS and Software » All Things Unix » 'find' and 'sendmail'
Search Topic:
Share Topic:
RSS topic:
toggle:
flat / full
normal / watch
Posting:
Post a:
Post a:
Can Linux Survive? »
« [FreeBSD] Disk read corruption issues on server.  
AuthorAll Replies


nixen
Rockin' the Boxen
Premium
join:2002-10-04
Alexandria, VA
·Cox HSI
·Speakeasy

reply to DprssdIsntFn
Re: 'find' and 'sendmail'

Umm... are these queue files or regular text files you're looking to mail. If the former, why not simply invoke sendmail with the QueueDirectory option and the "run queue now" option?
--
Everyday, thousands of new cars are delivered to their new owners with poorly-selected radio station presets.

DprssdIsntFn
Premium
join:2004-01-12
Pompton Lakes, NJ

Thanx for the responses so far. To answer some of the questions:

These are regular files.

Here are some sample attempts and corresponding results:

1} This example works:
result:
None of the following example(s) work. What you see here are different combinations of different things I've tried. i.e. one from column A, one from column B ...

The results below are typical.

Results part 1. Here, I've not answered 'y' to the 'xarg' prompts. This is just to show that the command to be executed is properly formed as in the working example above.
This is a snip of actual results.
The problem I had with the automatic insertion of the space between '' and 'email/file' I got around through the use of sed and temporary files.

If I execute the sendmail command directly in a script, it works fine. If I attempt to use either 'exec' or 'xargs', it fails.

This version of the DG-UX OS was last updated in 1998. This box was installed in 1994. I really, really don't like working with antique OSes!

Ugh!

Any more thoughts or ideas?


nixen
Rockin' the Boxen
Premium
join:2002-10-04
Alexandria, VA
Why not use mailx instead of trying to figure out sendmail?

DprssdIsntFn
Premium
join:2004-01-12
Pompton Lakes, NJ

said by nixen See Profile :

Why not use mailx instead of trying to figure out sendmail?
I actually started out with mail(x). On this system, mail(x) calls sendmail to send mail. I got absolutely nowhere with it.

The problem isn't with sendmail. It's with this version of 'sh'. I've finally tracked the problem down to how 'xarg' and 'exec' are parsed from within a 'sh' script. The parsing is not correct when redirection of a file to standard input is involved. For most cases, the parsing works fine. Just not in this case.

I'm taking a different approach entirely. Instead of writing just emails to a directory, I'm also writing short, 3-line 'sh' scripts to another directory. Then I select that directory and execute the scripts there.

Fortunately, this is a relatively low volume application.
Forums » Tech and Talk » OS and Software » All Things UnixCan Linux Survive? »
« [FreeBSD] Disk read corruption issues on server.  


Wednesday, 02-Dec 12:56:45 Terms of Use | Privacy Policy | Hosting by www.nac.net - DSL,Hosting & Co-lo | feedback | contact
over 10 years online! © 1999-2009 dslreports.com.
page compression OFF
Most commented news this week
· [159] Comcast Releasing Promised Usage Meter
· [73] Latest Consumer Reports Survey Not Kind To AT&T
· [69] Baltimore To Ban Lazy Cable Installs
· [60] Broadband Killed The Game Console
· [54] Rogers Unveils The ISP Dream Model
· [48] Graduate Student Unveils Sprint's GPS Sharing With Feds
· [46] ACTA: Global Three Strikes
· [41] Rural Carriers Quickly Embracing Fiber
· [36] Charter Exits Chapter 11
· [33] AT&T Top Lobbyist Cicconi Has His Feelings Hurt
Most people now reading
· Data Usage Meter Launched [Comcast HSI]
· IMG 1.7 (IMG Updates and Discussion) [Verizon FIOS TV]
· Windows 7 boot manager editing questions [Microsoft Help]
· So I found a gold mine... [World of Warcraft]
· MS admits Windows Updates principally created to annoy [Security]
· LFM Overkill [World of Warcraft]
· Am I the only one that loves to work in IT? [No, I Will Not Fix Your #@$!! Computer]
· Ooma changing features [VOIP Tech Chat]
· [WIN7] Outlook express under Windows 7? [Microsoft Help]
· Options if ACTA is ratified [TekSavvy]