08-08-2006
9 More Discussions You Might Find Interesting
1. Programming
I'm writing a monitoring application. I'd like to periodically get the information provided by the 'top' command line utility from within my code and write the output of 'top' to a file. Wondering if anyone has already done something like this.
Doing
system("top > someFile");
does not create... (6 Replies)
Discussion started by: antoniomorandi
6 Replies
2. Linux
Hi,
What else is the dot used beside relative filepaths in bash? Is it a shell utility as well?
No man entry for dot (.)... (3 Replies)
Discussion started by: varelg
3 Replies
3. Programming
Why does this socket function only read the first 1440 chars of the stream. Why not the whole stream ? I checked it with gdm and valgrind and everything seems correct...
#include <stdio.h>
#include <stdlib.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <string.h>
#include... (3 Replies)
Discussion started by: cyler
3 Replies
4. Shell Programming and Scripting
I am using the while-loop to read a file.
The file has lines with null-terminated strings (words, actually.)
What I have by that reading - just a first word up to '\0'!
I need to have whole string up to 'new line' - (LF, 10#10, 16#A)
What I am doing wrong?
#make file 'grb' with... (6 Replies)
Discussion started by: alex_5161
6 Replies
5. Shell Programming and Scripting
To read/write to a DB from Java or Perl, you usually have to install/reference several drivers and write a whole bunch of boilerplate DB access code.
I'm curious if someone has written a command line utility for Unix/Linux for simple database access for the major providers, something like:
... (3 Replies)
Discussion started by: furashgf
3 Replies
6. UNIX for Dummies Questions & Answers
Hi,
Using command-line utility "ftp or sftp", I want to transfer files across Windows and UNIX.
Can you please tell me from where I need to connect to ftp and how do I specify the hostname, credentials and how do I get and put files between DOS and UNIX?
Please provide me as much... (10 Replies)
Discussion started by: Dev_Dev
10 Replies
7. Shell Programming and Scripting
Hi ALL,
I have a requirement like this.
1.GET ALL TABLE NAME (just table name) keep in file
2.Read line by line and get the count of table from tablename files.
tablename detail has a sql statement "db2 select tabname from syscat.tables" (1 Reply)
Discussion started by: netdbaind
1 Replies
8. Shell Programming and Scripting
Hi Everyone!
I am facing an issue in running a command line utility from the CRON.
This utility displays IPC statistics on UNIX message queues: The "queue name" and the "count" of messages in the queue.
When running this utility from prompt, it will provide an output on the screen, like the... (4 Replies)
Discussion started by: vai_sh
4 Replies
9. Shell Programming and Scripting
Hi,
I have some 2000 names in a table like below.
Java
Oracle/SQL
ANSI SQL
SQL,DWH,DB
DB&Java
And by using for loop in my code i am able to get a single word but if there is any special character or space then it is considering as a next line.
I have to execute the below queries in... (10 Replies)
Discussion started by: Samah
10 Replies
LEARN ABOUT MOJAVE
net::ldapi5.18
Net::LDAPI(3) User Contributed Perl Documentation Net::LDAPI(3)
NAME
Net::LDAPI - use LDAP over a UNIX domain socket
SYNOPSIS
use Net::LDAPI;
$ldapi = Net::LDAPI->new('/var/run/ldapi');
# alternate way
use Net::LDAP;
$ldapi = Net::LDAP->new('ldapi://');
DESCRIPTION
Communicate using the LDAP protocol to a directory server using a UNIX domain socket. This mechanism is non-standard, UNIX-specific and not
widely supported.
All the normal "Net::LDAP" methods can be used with a "Net::LDAPI" object; see Net::LDAP for details.
CONSTRUCTOR
new ( [SOCKPATH] )
Create a new connection. SOCKPATH can optionally be specified, to specify the location of the UNIX domain socket to connect to.
If SOCKPATH is not given, the environment variable "LDAPI_SOCK" is evaluated, and if that does not exist, the value "/var/run/ldapi" is
used.
See "new" in Net::LDAP for further details.
SEE ALSO
Net::LDAP, IO::Socket::UNIX
BUGS
None yet.
AUTHOR
Derrik Pates <dpates@dsdk12.net>
COPYRIGHT
Copyright (c) 2003-2004, Derrik Pates and Graham Barr. All rights reserved. This library is free software; you can redistribute it and/or
modify it under the same terms as Perl itself.
perl v5.18.2 2013-07-21 Net::LDAPI(3)