Search Results

Search: Posts Made By: victorin
22,879
Posted By victorin
Thank you to all, The solution I found is...
Thank you to all,

The solution I found is to write a little C wrapper software that makes non-blocking read to the pipe (with the flag O_NONBLOCK)

When all the avaliable data is read, the...
22,879
Posted By victorin
Thx Franklin, your solution works in console...
Thx Franklin, your solution works in console mode, but I'm looking for a clean scripting solution.

Any ideas?
22,879
Posted By victorin
Reading from blocking fifo pipe in shell script
Hi!!

I have a problem reading from a fifo pipe in shell script.

The idea is simple, I have a C program with two pipe files:


An input pipe I use to send commands in shell script to the C...
6,103
Posted By victorin
Not works, so the process can be killed althought...
Not works, so the process can be killed althought it's slept
6,103
Posted By victorin
Thank you blowtorch. The problem is that...
Thank you blowtorch.

The problem is that the loop is executed through an apache web server with haserl interpreter (a way to build dinamic web with shell script).

When I kill the process with...
6,103
Posted By victorin
killing cascade processes
Hi everybody!!

I've got a problem. I have a loop like this:


while true; do
some_work
sleep 10m
done


It's possible to kill the main loop process and kill all childs from it? I...
6,358
Posted By victorin
Getting image properties
How can I get heigth and width of an image file?
It's possible to do without ImageMagick or other third libraries??

Thank you very much
2,121
Posted By victorin
If interests to somebody, I solved this problem...
If interests to somebody, I solved this problem changing the read line delimitier:

while read -d ':' line ; do


Because lines always end with : The \r delimitier does not work properly
...
2,121
Posted By victorin
Thx Jean pierre, but your solutin seems to not...
Thx Jean pierre, but your solutin seems to not work properly. First solution works ok, but lines with \r not appear in the file.

The second solution doesn't show any line, seems that while loop...
2,121
Posted By victorin
problem parsing process-output
HI all!

I have a problem parsing the output of another process. The output is like this (C):

printf("\rCheck exist: %d/%d",idx,pBF->NBits());

The aim of the script I'm coding is to save...
1,744
Posted By victorin
Thank you Jean-Pierre, the correct code that...
Thank you Jean-Pierre, the correct code that works is:

find / |
while read line ; do
echo $line > stdout.file
done

Thank you very much!
1,744
Posted By victorin
$line command problem
Hi all!

I have a problem with line command. The aim is to write each line of stdin into a text file.

For example with this command:

$find /
/usr/share/zoneinfo/WET...
Showing results 1 to 12 of 12

 
All times are GMT -4. The time now is 04:30 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy