Tagged Questions
3
votes
0answers
49 views
Fork vs. thread system time [closed]
I got the following logs:
Program 1:
Taken from a program executed 64 fork calls:
real 0m0.023s
user 0m0.068s
sys 0m0.008s
Program 2:
Taken from a program executed 64 thread calls:
real 0m0.613s
...
-1
votes
2answers
40 views
Why rsh not opens and reads PAM modules and limits.conf?
I am working on a project, that uses rsh utility for remote connection.
But my project needs some extra features for that, so I add that features.
Till now, all the things are going fine. But when I ...
1
vote
0answers
127 views
Conky - string formatting
I have conky the record:
${color lightblue} Down: ${downspeed wlan0} Up: ${upspeed wlan0}
Conky prints link speed, but the text moves:
Down: OB Up: OB
Down: 60B Up: 60B
Down: 148B Up: 148B
...
1
vote
0answers
110 views
Having problems with script and redirecting input to stdin [closed]
EDIT: found mistake, it was actually bug in my program, I had > instead of >= in my for loop that reads coefficients.
I'm fairly new to linux, and I need help with bash scripting.
I have C program, ...
2
votes
1answer
395 views
Redirecting output when I execute “bash -c …” from a C program
Say I have a C program and in it I want to execute a shell command and redirect its output to file, by using the stdlib system function.
system("bash -c \"echo $HOME\" > a.txt");
Now this is for ...