![]() |
|
|
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 |
| Cron - Not working properly | risshanth | HP-UX | 23 | 10-31-2007 06:34 AM |
| Telnet is not working properly | deepak_pathania | UNIX for Dummies Questions & Answers | 1 | 10-05-2007 06:59 PM |
| Rlogin not working properly from Linux | frankkahle | UNIX for Advanced & Expert Users | 1 | 10-19-2006 11:02 PM |
| Keyboard not working properly... | timresh | UNIX for Dummies Questions & Answers | 2 | 02-25-2005 07:28 AM |
| pf not working properly even with only "pass in all" and "pass out all" rules | xyyz | UNIX for Advanced & Expert Users | 4 | 12-30-2003 05:33 AM |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
||||
|
y is this not working properly?
#include <stdio.h>
#include <sys/types.h> #include <string.h> #include <sys/stat.h> #include <unistd.h> struct stat s; main() { char c[100]; if (fork()==0) { system("clear"); do { printf("myAI\\>§ "); scanf("%s",c); if(stat(c,&s)>-1) { system("att"); } else if (strcmp("machine",c)<0) { system("echo $USER@`hostname`"); system("echo kernel : `uname -r`"); system("kde-config --version | grep KDE"); } } while (strcmp("exit",c)); exit(1); } wait(NULL); } |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|