I like to have my program (running on my home machine)
email me (wherever I am) whenever it reaches a certain mile-stone
(finishes a phase of the simulation or runs into an interesting
path in the simulation). I just like add the feature so it can
email me the partial results. Is there a source code for
something like this I can add to my program? Do I need
an SMTP server code or can I use my current SMTP ISP smtp
server to email myself?
I know I can always write the results in d file on my web
server, but I want results emailed to myself when needed.
Thanks a lot in advance.
Ben 13 1384
Pie wrote: I like to have my program (running on my home machine) email me (wherever I am) whenever it reaches a certain mile-stone (finishes a phase of the simulation or runs into an interesting path in the simulation). I just like add the feature so it can email me the partial results. Is there a source code for something like this I can add to my program? Do I need an SMTP server code or can I use my current SMTP ISP smtp server to email myself?
I know I can always write the results in d file on my web server, but I want results emailed to myself when needed.
Thanks a lot in advance.
Ben
There may be sources available, but 1) this is not comp.sources.wa nted
and 2) those sources won't be in standard C++ (the topic here), since
standard C++ has no support for email, or networking of any kind.
-Kevin
--
My email address is valid, but changes periodically.
To contact me please use the address from a recent posting.
Kevin Goodsell wrote: Pie wrote:
I like to have my program (running on my home machine) email me (wherever I am) whenever it reaches a certain mile-stone (finishes a phase of the simulation or runs into an interesting path in the simulation). I just like add the feature so it can email me the partial results. Is there a source code for something like this I can add to my program? Do I need an SMTP server code or can I use my current SMTP ISP smtp server to email myself? I know I can always write the results in d file on my web server, but I want results emailed to myself when needed.
Thanks a lot in advance.
Ben
There may be sources available, but 1) this is not comp.sources.wa nted and 2) those sources won't be in standard C++ (the topic here), since standard C++ has no support for email, or networking of any kind.
True that.
If you have a command-line program to mail stuff on your platform
already, you could use system( "mail myfile.txt" ) or open a pipe to the
program.
Jeff Schwab wrote: If you have a command-line program to mail stuff on your platform already, you could use system( "mail myfile.txt" ) or open a pipe to the program.
But you can't open a pipe using standard C++.
-Kevin
--
My email address is valid, but changes periodically.
To contact me please use the address from a recent posting.
Kevin Goodsell wrote: Jeff Schwab wrote:
If you have a command-line program to mail stuff on your platform already, you could use system( "mail myfile.txt" ) or open a pipe to the program.
But you can't open a pipe using standard C++.
Yes, you can. You just have to make a platform-specific system call.
The system may or may not provide such functionality, just as it may or
may not provide a mail program with a CLI. There is nothing in the
standard that says you can't open a pipe.
Jeff Schwab wrote: Kevin Goodsell wrote:
Jeff Schwab wrote:
If you have a command-line program to mail stuff on your platform already, you could use system( "mail myfile.txt" ) or open a pipe to the program.
But you can't open a pipe using standard C++.
Yes, you can. You just have to make a platform-specific system call.
How is a a platform-specific system call standard C++?
The system may or may not provide such functionality, just as it may or may not provide a mail program with a CLI. There is nothing in the standard that says you can't open a pipe.
There's nothing that says you can't travel through time, either. Maybe I
should get to work on that standard C++ time travel program.
-Kevin
--
My email address is valid, but changes periodically.
To contact me please use the address from a recent posting.
Kevin Goodsell wrote: Jeff Schwab wrote:
Kevin Goodsell wrote:
Jeff Schwab wrote:
If you have a command-line program to mail stuff on your platform already, you could use system( "mail myfile.txt" ) or open a pipe to the program.
But you can't open a pipe using standard C++. Yes, you can. You just have to make a platform-specific system call.
How is a a platform-specific system call standard C++?
What part of it violates the standard? Calling a function that's not
part of the standard library doesn't make a program non-standard. Don't
you use functions you wrote yourself, or functions someone else wrote
for you? System calls are the latter. The system may or may not provide such functionality, just as it may or may not provide a mail program with a CLI. There is nothing in the standard that says you can't open a pipe.
There's nothing that says you can't travel through time, either. Maybe I should get to work on that standard C++ time travel program.
LOL. Yes, I think you should. :)
"Kevin Goodsell" <us************ *********@never box.com> wrote Jeff Schwab wrote:
Kevin Goodsell wrote:
Jeff Schwab wrote:
If you have a command-line program to mail stuff on your platform already, you could use system( "mail myfile.txt" ) or open a pipe to the program.
But you can't open a pipe using standard C++.
Yes, you can. You just have to make a platform-specific system call.
How is a a platform-specific system call standard C++?
I think the problem here -- and it's a recurring one -- is in the phrasing of
that assertion. It's misleading toward beginners to state that "you can't do
[networking|grap hics|etc.] in Standard C++" and it's pejorative to C++ to imply
such an inability. The standard has never precluded using third party libraries
and a program that does use third party libraries doesn't suddenly become
non-conforming. If instead, it were phrased as "that functionality is not
included in the core language or the standard libraries and discussions of
third party or platform-specific libraries is off-topic in this newsgroup", it
would not mislead anyone into thinking it a limitation of C++, which it clearly
isn't.
Claudio Puviani
Jeff Schwab wrote: Kevin Goodsell wrote:
How is a a platform-specific system call standard C++?
What part of it violates the standard? Calling a function that's not part of the standard library doesn't make a program non-standard. Don't you use functions you wrote yourself, or functions someone else wrote for you? System calls are the latter.
I'm not saying it violates the standard, I'm saying it's /not/ standard.
In other words, it's not defined by the standard. A program that "opens
a pipe" is using non-standard functionality, and can no longer be
considered a standard C++ program.
-Kevin
--
My email address is valid, but changes periodically.
To contact me please use the address from a recent posting.
Kevin Goodsell wrote: Jeff Schwab wrote:
Kevin Goodsell wrote:
How is a a platform-specific system call standard C++?
What part of it violates the standard? Calling a function that's not part of the standard library doesn't make a program non-standard. Don't you use functions you wrote yourself, or functions someone else wrote for you? System calls are the latter.
I'm not saying it violates the standard, I'm saying it's /not/ standard. In other words, it's not defined by the standard. A program that "opens a pipe" is using non-standard functionality, and can no longer be considered a standard C++ program.
Are you saying a pipe can't be implemented in C++? This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Count László de Almásy |
last post by:
Greetings,
I'm in need of a simple GUI application that "monitors" a range of
hosts using ping and reports on their status by changing the panel
color for that host (i.e, green for pingable, red for unreachable).
Does anyone know of any existing opensource program that does this?
Preferably Python so I can extend it easily.
If not,...
|
by: Wally |
last post by:
Hi
Hi need to monitoring my windows service written in VB NET.
How can my monitor application "feel" that my service has made something?
Is the only way a polling (for example on a Db table)?
Can't service generate events into monitor application?
Where can I retrieve examples about monitoring windows services?
Thank in advance
and......
|
by: SQLDBA |
last post by:
I am in the process of evaluating some SQL Performance Monitoring /DBA
tool to purchase (For SQL Server 2000). I have the following list of
software that I came across and have to finalize which one to recomend
for purchase by my company.
Quest Central® for SQL Server
Performance Center by Embarcadero (dbartisan)
Performance analysis by...
|
by: JSheble |
last post by:
I have a windows service that in the OnStart it creates a thread and runs a
loop forever and ever, assuming the service is running. The loop stops
during the OnStop event, and everything works exactly as expected.
I also have an application that monitors that service using the
ServiceController component, and allows me to start & stop the...
|
by: Greg Allen |
last post by:
I know this has been discussed before, and have found some documentation
about
it on the web. But nothing has fixed my problem.
I am running the 1.1 .NET framework, SP1.
I have a web application that I would like to place on a remote shared drive
on a different computer. I had problems with that, so I simplified it so
that I
am trying...
| |
by: Tim D |
last post by:
Hi,
I originally posted this as a reply to a rather old thread in
dotnet.framework.general and didn't get any response. I thought it might be
more relevant here; anyone got any ideas? My questions are below...
"David Good" wrote:
> We have a network running both Win2k and Win2k3 webservers and our web sites
> reside on a UNC network...
|
by: developer |
last post by:
I am trying to get a custom provider to receive health monitoring events in
vb.net, whidbey beta 1. I have a health monitoring setup like this in my
web.config:
<healthMonitoring enabled="true">
<providers>
<add name="LocalSQL"
type="System.Web.Management.SqlWebEventProvider"
connectionStringName="connLocalSQL" />
<add...
|
by: Bob |
last post by:
I have an app running 24 7 on a computer hiden away in a closet. I need to
be able to monitor if it has thrown any unhandled exceptions or if it is no
longer responding from another computer on the network. I also need a
supervisor or a tech support guy to be advised ASAP when a problem occurs.
One of the difficulties is that the app uses...
|
by: athos |
last post by:
Dear guys,
Now we are trying to build an Audit-Log module for our projects.
The idea is to
1. develop a module that could be used by different projects to save
the log, including account management, master data, and transaction
data actions.
2. based on the requirement of each project, use SSRS to define
different reports showing...
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language...
|
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it. ...
| |
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
|
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes...
|
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
| |
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...
| |