* Adding 'random' features
@ 2002-06-27 8:20 xlp
2002-06-27 8:27 ` Carlos Fernandez Sanz
0 siblings, 1 reply; 2+ messages in thread
From: xlp @ 2002-06-27 8:20 UTC (permalink / raw)
To: linux-c-programming
hi, i have certain binary and I want that each 3 times the file is executed, it perform different things that it does normally.
I can do that one time YES and other no:
if file a exists -> then do smthg; rm file a
if ! file a exists -> then do smthg; touch file a
Now, I want to 3 times!.
anyone?
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Adding 'random' features
2002-06-27 8:20 Adding 'random' features xlp
@ 2002-06-27 8:27 ` Carlos Fernandez Sanz
0 siblings, 0 replies; 2+ messages in thread
From: Carlos Fernandez Sanz @ 2002-06-27 8:27 UTC (permalink / raw)
To: linux-c-programming
That doesn't seem like C to me...
Anyway instead of using the existance of a file (which obviously only has
two possible status) try storing something in the file :-)
----- Original Message -----
From: "xlp" <xlp@emtel.net.co>
To: <linux-c-programming@vger.kernel.org>
Sent: Thursday, June 27, 2002 10:20 AM
Subject: Adding 'random' features
> hi, i have certain binary and I want that each 3 times the file is
executed, it perform different things that it does normally.
> I can do that one time YES and other no:
> if file a exists -> then do smthg; rm file a
> if ! file a exists -> then do smthg; touch file a
>
> Now, I want to 3 times!.
>
> anyone?
>
> -
> To unsubscribe from this list: send the line "unsubscribe
linux-c-programming" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
>
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2002-06-27 8:27 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-06-27 8:20 Adding 'random' features xlp
2002-06-27 8:27 ` Carlos Fernandez Sanz
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).