11-03-2010
9 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
I am trying to compare two file and make changes where ever its different.
for example:
Contents of file1
IP=192.165.89.11
NM=255.255.0.0
GW=192.165.89.1
Contents of file2
IP=192.165.89.11
NM=255.255.255.255
GW=192.165.89.1
NOTE HERE THAT NM IS DIFFERENT
So i want the changes... (6 Replies)
Discussion started by: pradeepreddy
6 Replies
2. UNIX for Dummies Questions & Answers
Why do I need to call make if I call gcc ?
I thought gcc already compiles the sources.
thanks (1 Reply)
Discussion started by: aneuryzma
1 Replies
3. Programming
How I can get the current make-file name in a make-file
So, if I run make with specified file:make -f target.mak
is it possible to have the 'target' inside of the that 'target.mak' from the file name? (2 Replies)
Discussion started by: alex_5161
2 Replies
4. Shell Programming and Scripting
Hi
I have to create a windows batch file which will read an input file and remove "double quotes" from each line of the file.
For eg.If input file name is abcd.csv and contents is :
"asasd,123123,213213,asd"
"esfrf,dsfsdf,234324,sdfsdf"
Then the batch file should remove "" from the... (11 Replies)
Discussion started by: akashtcs
11 Replies
5. Windows & DOS: Issues & Discussions
Hi,
I would like to get the output of below command emailed to me in a windows2003 server.
"bpimagelist -hoursago 24 -U"
I will be using "blat" to email the output of this command.But not sure how the above command is called for in a batch file when executed.
Would appreciate if... (1 Reply)
Discussion started by: Hari_Ganesh
1 Replies
6. Shell Programming and Scripting
Hello all,
I have a make question, and I was hoping somebody here might be able to point me in the right direction.
Here is my issue; I have a command-line tool that I use to run a conversion on an input XML file that results in an output binary file. However, this particular tool needs to... (1 Reply)
Discussion started by: jujumbura
1 Replies
7. Shell Programming and Scripting
I have input data looks like this which is a part of a csv file
7,1265,76548,"0102:04"
8,1266,76545,"0112:04"
I need to make the output data should look like this and the output data will be part of text file:
7|1265000 |7654899 |A|
8|12660000 |76545999 |B|
The logic behind the... (6 Replies)
Discussion started by: RJG
6 Replies
8. UNIX for Beginners Questions & Answers
I am trying to use a batch file to automatically execute a bash script with no luck this far.
The batch script looks like this:
C:\Cygwin64\bin\bash test.sh
I have also tried this:
C:\Cygwin64\bin\bash "C:\Cygwin64\bin\test.sh"
Needless to say that the windows box has Cygwin... (7 Replies)
Discussion started by: Xterra
7 Replies
9. UNIX for Beginners Questions & Answers
Let say I have a file with variables (Test1.txt)
In Test1.txt file, it consists of
Tom is a boy
Jim is a dog
In the other scripting file (RunTest1.sh), I have
#!/bin/ksh
filename = /directory/Test1.txt
cat $filename
for i in $filename
do
print $i
done
I managed to call... (1 Reply)
Discussion started by: TestKing
1 Replies
LEARN ABOUT DEBIAN
iob_write
iob_write(3) Library Functions Manual iob_write(3)
NAME
iob_write - send I/O batch through callback
SYNTAX
#include <iob.h>
typedef int64 (*io_write_callback)(int64 s,const void* buf,uint64 n);
int64 iob_write(int64 s,io_batch* b,io_write_callback cb);
DESCRIPTION
iob_write sends the (rest of) b through the callback cb, passing s as first argument. cb is expected to behave like io_trywrite(2).
This interface is intended to send an I/O batch through a filter, for example to encrypt or compress it. If you just want to send an I/O
batch to a socket, use iob_send instead.
iob_write returns the number of bytes written, 0 if there were no more bytes to be written in the batch, -1 for EAGAIN, or -3 for a perma-
nent error (for example "connection reset by peer").
The normal usage pattern is using io_wait to know when a descriptor is writable, and then calling iob_write until it returns 0, -1 or -3.
If it returns 0, terminate the loop (everything was written OK). If it returns -1, call io_wait again. If it returned -3, signal an
error.
NOTE
iob_write will continue to call your callback until it returns an error. So if you are in a state machine, for example a web server using
this for SSL support, make sure to write at most n bytes at a time (e.g. 64k) and the next time you are called return -1. Otherwise
iob_write might not return until the whole file is served.
SEE ALSO
iob_send(3)
iob_write(3)