10 More Discussions You Might Find Interesting
1. Homework & Coursework Questions
I uploaded a .dat file from sftp to my server and after using dos2unix to convert the file and check my work it says that the file was not transferred correctly and that the content is garbled. Please help (3 Replies)
Discussion started by: Ovid158
3 Replies
2. Shell Programming and Scripting
How to use 'ls' command to list files like *.dat, not *.*.dat (5 Replies)
Discussion started by: pmcginni777
5 Replies
3. Shell Programming and Scripting
Hi,
I need help to convert the date format in .DAT file in unix.
I want to convert
10@@|SWIFT MT568 Extract@@|Apr 14 2014 5:47:52:563PM@@|Apr 14 2014 4:33:47:663PM@@||##|
into
10@@|SWIFT MT568 Extract@@|04/14/2014/ 5:47:52:563PM@@|04/14/2014 4:33:47:663PM@@||##|
Appreciate... (18 Replies)
Discussion started by: karthikengox
18 Replies
4. Shell Programming and Scripting
Hi,
The source system has created the file in the dat format and put into the linux directory as mentioned below. I want to do foloowing things.
a) Delete the Line started with <CR><LF> in the record
b)Also line
...........................................................<CR><LF>
... (1 Reply)
Discussion started by: mr_harish80
1 Replies
5. UNIX and Linux Applications
Hello,
is here anybody who know How I convert the .dat format files to .su format files in SeismicUnix.
Is it possible?
The dat-format files was generated when I run the forel's script, like model1.sh .
Thanks a lot
Vianney (1 Reply)
Discussion started by: vianney
1 Replies
6. SCO
Looking for specifically naming convention for a tape device for SCO Unix
What full system backup command should I use for SCO UNIX (1 Reply)
Discussion started by: jedimaster
1 Replies
7. AIX
Hi ,
Can you suggest me how to back to back printing in UNIX? Is there any way?
Kindly advise.
Regards
Vijaya Amirtha Raj (3 Replies)
Discussion started by: amirthraj_12
3 Replies
8. UNIX for Dummies Questions & Answers
I have a .dat file in unix and it keeps failing file validation on line x. How do I delete a data string from a .dat file in UNIX?
I tried the following:
sed -e 'data string' -e file name
and it telling me unrecognized command (4 Replies)
Discussion started by: supergirl3954
4 Replies
9. Shell Programming and Scripting
Hi All,
I have a .dat file named test.dat where I have stored some process IDs.
Now I need to pick a process ID, one by one and then fire kill -9 for each of those. The logic should be:
1. open file <filename.dat>
2. read until last line of file
3. if process ID is found fire kill -9... (5 Replies)
Discussion started by: Sibasish
5 Replies
10. Filesystems, Disks and Memory
I just "found" this autoloader under a bunch of "crap".
Never knew we had one! Since I'm cutting it close to being full on my existing 2 tape drives (DDS2 & DDS3) I want to connect this device and start using it.
Ok, I know there's the possibility that it doesn't work, but once I have it... (2 Replies)
Discussion started by: ncmurf00
2 Replies
User API Assistance.(3) globus xio User API Assistance.(3)
NAME
User API Assistance. -
Help understanding the globus_xio api.
Stack Constuction.
The driver stack that is used for a given xio handle is constructed using a globus_xio_stack_t. Each driver is loaded by name and
pushed onto a stack.
stack setup example:
// First load the drivers
globus_xio_driver_load('tcp', &tcp_driver);
globus_xio_driver_load('gsi', &gsi_driver);
//build the stack
globus_xio_stack_init(&stack);
globus_xio_stack_push_driver(stack, tcp_driver, NULL);
globus_xio_stack_push_driver(stack, gsi_driver, NULL);
Servers
A server data structure provides functionality for passive opens. A server is initialized and bound to a protocol stack and set of
attributes with the function globus_xio_server_create(). Once a server is created many 'connections' can be accepted. Each connection
will result in an intialized handle which can later be opened.
globus_xio_server_t server;
globus_xio_attr_t attr;
globus_xio_attr_init(&attr);
globus_xio_server_create(&server_handle, attr, stack);
globus_xio_server_accept(&handle, server);
Handle Construction
There are two ways to create a handle. The first is for use as a client (one that is doing an active open). The function:
globus_xio_handle_create() is used to create such a handle and bind that handle to a protocol stack.
globus_xio_handle_create(&handle, stack);
The second means of creating a handle is for use as a server (one that is doing a passive open). This is created by accepting a connection
on a server_handle with the function globus_xio_server_accept() or globus_xio_server_register_accept().
Mutable attrs can be altered via a call to globus_xio_handle_cntl() described later.
globus_xio_server_accept(&xio_handle, server_handle);
once a handle is intialized the user can call globus_xio_open() to begin the open process.
Timeouts
A user can set a timeout value for any io operation. Each IO operation (open close read write) can have its own timeout value. If no
timeout is set the operation will be allowed to infinitly block.
When time expires the outstanding operation is canceled. If the timeout callback for the given operation is not NULL it is called
first to notify the user that the operation timed out and give the user a chance to ignore that timeout. If canceled, the user will get
the callback they registered for the operation as well, but it will come with an error indicating that it has been canceled.
It is possiblie that part of an io operation will complete before the timeout expires. In this case the opperation can still be
canceled. The user will receive there IO callback with and error set and the length value appropriately set to indicate how much of the
operation completed.
Data Desciptor
The data descriptor ADT gives the user a means of attaching/extracting meta data to a read or write operation.
Things like offset, out of band message, and other driver specific meta data are contained in the data descriptor.
Data descriptors are passed to globus_xio in globus_xio_read() and globus_xio_write(). Within the globus_xio framework it is
acceptable to pass NULL instead of a valid data_descriptor,
ex:
globus_xio_data_descriptor_init(&desc);
globus_xio_data_descriptor_cntl(desc,
tcp_driver,
GLOBUS_XIO_TCP_SET_SEND_FLAGS,
GLOBUS_XIO_TCP_SEND_OOB);
User Attributes
Globus XIO uses a single attribute object for all of its functions. Attributes give an the user an extenable mechanism to alter default
values which control parameters in an operation.
In most of the globus xio user api functions a user passes an attribute as a parameter. In many cases the user may ignore the
attribute parameter and just pass in NULL. However at times the user will wish to tweak the operation. The attribute structure is used
for this tweaking.
There are only three attribute functions. globus_xio_attr_init globus_xio_attr_cntl and globus_xio_attr_destroy. The init and destroy
functions are very simple and require little explaination. Before an attribute can be used it must be intialized, and to clean up all
memory associated with it the user must call destroy on it.
The function globus_xio_attr_cntl manipulates values in the attribute. For more info on it see globus_xio_attr_cntl.
Author
Generated automatically by Doxygen for globus xio from the source code.
Version 3.3 Mon Apr 30 2012 User API Assistance.(3)