summaryrefslogtreecommitdiff
path: root/sig.c
diff options
context:
space:
mode:
Diffstat (limited to 'sig.c')
-rw-r--r--sig.c24
1 files changed, 24 insertions, 0 deletions
diff --git a/sig.c b/sig.c
new file mode 100644
index 0000000..1ab0bbb
--- /dev/null
+++ b/sig.c
@@ -0,0 +1,24 @@
+#include <stdlib.h>
+#include <unistd.h>
+#include <stdio.h>
+
+int main()
+{
+ setbuf(stdout,NULL);
+ printf("\nIan C\n\n-- \n");
+ /*system("fortune /home/ianc/Documents/sigfortune");*/
+
+ switch (fork())
+ {
+ case 0:
+ execlp("fortune","fortune","/home/ianc/Documents/sigfortune",(const char *)NULL);
+
+ case -1:
+ break;
+
+ default:
+ wait(NULL);
+ break;
+ }
+
+}