10 More Discussions You Might Find Interesting
1. Programming
I have this small program that runs with the flat assembler. My problem is that at the receive line function it receives the line and if there isn't a $ typed at the end of the user input the program displays a lot of strange stuff, sometimes beeps and then it seems to terminate without causing any... (13 Replies)
Discussion started by: Errigour
13 Replies
2. Shell Programming and Scripting
just to confirm
du from sh show sizes as multiples of 512 byte right? (4 Replies)
Discussion started by: Nick1097
4 Replies
3. Programming
i'm experimenting fork function and i found this code
#include <stdio.h>
#include <sys/stat.h>
#include <sys/types.h>
#include <wait.h>
#include <fcntl.h>
#include <unistd.h>
int main(void)
{
int fd;
pid_t p;
p = fork();
fork();
if (p>0) { fork();}
fork();
fork();... (6 Replies)
Discussion started by: blob84
6 Replies
4. Programming
I writing a program that forks three times but only on the parent process. The three children processes then produces output in order. 1, 2, 3. I am confused on how to do this. I have tried multiple if and else if statements but the output does not come out right. How should I go about doing this? (1 Reply)
Discussion started by: TWhitt24
1 Replies
5. Programming
Hi everyone:
I'm developing a dynamic library for notifications, this library is used for a daemon that i've programmed, when something goes wrong the library should send an email to an administrator, but since sending an email is a non-vital process then it can fail (it should work as an... (4 Replies)
Discussion started by: edgarvm
4 Replies
6. UNIX for Dummies Questions & Answers
I am looking for some model like this:
My Computer
-------------
Intermediate Server (IS)
-------------
Own Server
I must be able to ssh into the Intermediate Internet Server which is generally an online version of SSH service through which I will connect to Own Server. I was the IS to... (2 Replies)
Discussion started by: Legend986
2 Replies
7. Shell Programming and Scripting
First af all hi.
i want to create a batch script which inform when users log in last time on system or if they are online when they logged in.
I want ot use a file .users which has the usernames of users.
i want to print for example
peter is ONLINE: Logged in on Wed Feb 11 07:47
alex... (2 Replies)
Discussion started by: sasa
2 Replies
8. Shell Programming and Scripting
Hello..
I am doing some awk-ing and among all I use substr inside it..
I have: ....substr($0,60,37)
meaning as U all know take from 37 char. from point 60..
can I put it like this substr($0,60,end of line)
meaning take it from point 60 and take all characketrs in that line until line... (2 Replies)
Discussion started by: amon
2 Replies
9. Shell Programming and Scripting
Hi there,
I found the following script on the net, i like to use it as a standard template for new scripts.
But i do not understand the meaning of the last line, can anybody explain what going on on the last line
vflag=off
filename=
while getopts vf: opt
do
case "$opt" in
v)... (9 Replies)
Discussion started by: janr
9 Replies
10. Programming
When executing this simple program:
#include <unistd.h>
void main()
{
int f;
printf("\n Parent procces ID=%d\n",getpid());
f=fork();
if(f==0)
{
printf("\n Child process ID=%d father=%d\n",getpid(),getppid());
}
... (2 Replies)
Discussion started by: bb666
2 Replies