![]() |
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| High Level Programming Post questions about C, C++, Java, SQL, and other programming languages here. |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| This might be a programming teaser! | ljankok | Shell Programming and Scripting | 1 | 12-29-2008 07:54 AM |
| C Brain Teaser | vrk1219 | High Level Programming | 34 | 08-03-2008 02:17 PM |
| Korn -- an extended shell | iBot | UNIX and Linux RSS News | 0 | 05-05-2008 11:20 AM |
| Extended ascii | avis | High Level Programming | 0 | 08-29-2004 10:44 AM |
| about extended memory | rajashekaran | High Level Programming | 1 | 12-01-2001 01:20 AM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
Hi Gurus,
To the Brain Teaser, if I add another condition, say the executable should not be altered, how the program should be altered? (no perl please, purely C). I forgot to mention this condition my staff had mentioned. ( forgot then and got now )The program executed the first time should do some thing and if executed again, should do nothing. (not to encounter "file missing" error though )Regards RK Veluvali |
|
||||
|
For the first time, when the executable is run -
Code:
check if file /var/tmp/epoch_seconds is available if available unlink and exit don't run else create the above file and terminate fi |
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|