02-28-2012
Fantastic, It works perfectly!
Thanks agama!
10 More Discussions You Might Find Interesting
1. AIX
Hi guys,
I have a AIX 4.3 system, and I need to configure a printer, but that printer it's connected to a axis print server. I have lot of years working with unix, but never added a printer in a AIX system. I need to add using "remote print queue", and add the hostname and ip to the /etc/hosts?... (2 Replies)
Discussion started by: uadm26
2 Replies
2. OS X (Apple)
I'm using my wife's Macbook, and I just noticed that her screen is off axis, but I can't find a way to adjust it. I've tried playing around with resolution in preferences, but nothing.
Maybe a terminal command for adjusting the x and y values of the screen?
Any and all suggestions welcomed :) (2 Replies)
Discussion started by: andou
2 Replies
3. UNIX for Dummies Questions & Answers
Hi,
I've just created a shell script that produces the following output:
hd1 hd3 hd9
/optnonaix/esp /optnonaix/app/oracle /u06
(564.67) (675.97) (678.90)
I would like the output to be as
hd1 /optnonaix/esp (564.67)
hd3 /optnonaix/app/oracle (675.97)
hd9 /u06 (678.90)
Need some... (2 Replies)
Discussion started by: bazzabogan
2 Replies
4. Shell Programming and Scripting
I have to create a Perl script which will transpose the data output from my experiment, from columns to rows, in order for me to analyse the data.
I am a complete Perl novice so any help would be greatly appreciated.
The data as it stands looks like this:
Subject Condition Fp1 ... (12 Replies)
Discussion started by: Sarah_W
12 Replies
5. Shell Programming and Scripting
Hi All,
I was wondering how I can convert each line in an input file where fields are separated by variable width spaces into a CSV file. Below is the scenario what I am looking for.
My Input data in inputfile.txt
19 15657 15685 Sr2dReader 107.88 105.51... (4 Replies)
Discussion started by: vharsha
4 Replies
6. Shell Programming and Scripting
Hello to all,
I really hope some expert or awk guru could help me with this. I don't have how to begin and hope is not so difficult for somebody. I'll expecting how someone could resolve this problem I have to parse this.
I have blocks of parameters for each MSISDN and I would like to extract... (9 Replies)
Discussion started by: Ophiuchus
9 Replies
7. Shell Programming and Scripting
Hi
I have a large csv file with lines like below
Date,Status,orig,dest,in,out,when,where
2012-01-01 00:30:37,I,48,56,23,98,83,34
2012-06-17 15:00:38,I,72,43,12,65,34,12I will really appreciate if someone can help with a sed script to transpose this to
2012-01-01 00:30:37,I,orig,48... (5 Replies)
Discussion started by: kaf3773
5 Replies
8. Shell Programming and Scripting
Let me start by saying I'm new to gnuplot and not very good at unix at all..
Anyway, I'm each minute measuring temperature and humidity and saves the last 60 readings along with time in a textfile, values_minute.
The contents of the file is formatted like this: time temperature humidity
... (8 Replies)
Discussion started by: hakro807
8 Replies
9. Shell Programming and Scripting
Hi, I am newbie in shell script.
I need your help to solve my problem.
Firstly, I have 2 files of csv and i want to compare of the contents then the output will be written in a new csv file.
File1:
SourceFile,DateTimeOriginal
/home/intannf/foto/IMG_0713.JPG,2015:02:17 11:14:07... (8 Replies)
Discussion started by: refrain
8 Replies
10. Shell Programming and Scripting
I do have a big tab delimited file of the following format
aa 344 456
aa 34 67
bb 34 90
bb 23 100
bb 1 89
d 0 12
e 45 678
e 78 90
e 56 90
....
....
....
I would like to transpose the data based on the category on column one and get the output file in the following tab delimited... (8 Replies)
Discussion started by: Kanja
8 Replies
LEARN ABOUT PHP
socket_write
SOCKET_WRITE(3) 1 SOCKET_WRITE(3)
socket_write - Write to a socket
SYNOPSIS
int socket_write (resource $socket, string $buffer, [int $length])
DESCRIPTION
The function socket_write(3) writes to the $socket from the given $buffer.
PARAMETERS
o $socket
-
o $buffer
- The buffer to be written.
o $length
- The optional parameter $length can specify an alternate length of bytes written to the socket. If this length is greater than
the buffer length, it is silently truncated to the length of the buffer.
RETURN VALUES
Returns the number of bytes successfully written to the socket or FALSE on failure. The error code can be retrieved with
socket_last_error(3). This code may be passed to socket_strerror(3) to get a textual explanation of the error.
Note
It is perfectly valid for socket_write(3) to return zero which means no bytes have been written. Be sure to use the === operator to
check for FALSE in case of an error.
NOTES
Note
socket_write(3) does not necessarily write all bytes from the given buffer. It's valid that, depending on the network buffers etc.,
only a certain amount of data, even one byte, is written though your buffer is greater. You have to watch out so you don't uninten-
tionally forget to transmit the rest of your data.
SEE ALSO
socket_accept(3), socket_bind(3), socket_connect(3), socket_listen(3), socket_read(3), socket_strerror(3).
PHP Documentation Group SOCKET_WRITE(3)