Forum: Shell Scripting Nov 8th, 2008 |
| Replies: 0 Views: 462 Hey, I wanted to write a script that would act as a shell, meaning: would display prompt, read from keyboard and run system commands. My guess would be to use fork() and exec() and strtok(), so I... |
Forum: Shell Scripting Sep 3rd, 2008 |
| Replies: 3 Views: 1,800 Ah, lame me, didn't know about those -d = dir, -f = file :/
Thanks, that one works fine, but the 1st one just prints the content of the online.txt file, twice, in two lines. How come? |
Forum: Shell Scripting Sep 2nd, 2008 |
| Replies: 3 Views: 1,800 Hi, I've got 2 problems with sh:
1) I have a list of logins, seperated by a space (in a logins.txt file, like so: login1 login2 login3). I'd like to display those login names which are online AND... |