11-14-2003
What is your goal? Do you need to have specific info available? Do you need to an application available? This depends a lot on the hardware you currently have and the applicatoin or information you are trying to keep highly available.
10 More Discussions You Might Find Interesting
1. UNIX for Advanced & Expert Users
looking for solution to replicate 1.5GB files to a remote location...
Currently, this process looks like the following:
move 1.5GB files into a staging area.
compress files.
rsync files to remote server.
remove compressed files.
I have performed some timings, and compress seems more... (5 Replies)
Discussion started by: mr_manny
5 Replies
2. Shell Programming and Scripting
Hi,
I have this scenario; where there are two classes:- apple and orange.
1,2,3,4,5,6,apple
1,1,0,4,2,3,apple
1,3,3,3,3,4,apple
1,1,1,1,1,1,orange
1,2,3,1,1,1,orange
Basically for apple, i have 3 entries in the file, and for orange, I have 2 entries. Im trying to edit the file and find... (5 Replies)
Discussion started by: ahjiefreak
5 Replies
3. UNIX for Advanced & Expert Users
Hi Folks,
We have 6 processors in our sun server. I do see that CPU usage by one of the processor is always more than 70-80% and for remaining 5 processors, its only 20%. Is there a way to delegate the excess CPU load on one of the processors in server to other processors in same server? Is... (3 Replies)
Discussion started by: vaibhav.kanchan
3 Replies
4. Shell Programming and Scripting
I have a dir as /library/utility/apache-tomcat/tbase-6001/repositories which has many huge directories and files. I am planning to replicate it to another folder
/library/utility/apache-tomcat/tbase2008-6001/repositories
Normal copy command is taking a hell lot of time and getting hung in... (1 Reply)
Discussion started by: Tuxidow
1 Replies
5. Shell Programming and Scripting
Hi,
I am using putty client to connect to my remote Linux server box, and I am connecting through ssh. That system runs bash shell. So, if I use multiple putty terminal, how can I replicate those commands that I ran in other terminals to be available/shared in the current terminal window (i.e)... (1 Reply)
Discussion started by: royalibrahim
1 Replies
6. Shell Programming and Scripting
Is it possible to replicate the lines based on 4th column of the input like the below ?
input
ar1 10 100 -1
ar1 20 200 -2
arX 34 140 +1
arY 7 1 +4
output
ar1 10 100 -
ar1 20 200 -
ar1 20 200 -
arX 34 140 +
arY ... (1 Reply)
Discussion started by: quincyjones
1 Replies
7. Shell Programming and Scripting
We usually use the following awk code to delete of find out the replicate record.
awk -F, '{a++} END {for (i in a) if (a>=2) print i a}' file
My question is how can I print the whole record. The following code doesn't work.
awk -F, '{a++} END {for (i in a) if (a>=2) print $0}' file
... (8 Replies)
Discussion started by: xshang
8 Replies
8. Shell Programming and Scripting
Hello, I have a 2 column file with an ID column and a column with some string.
ID String
EN03 typehellobyedogcatcatdog
EN09 typehellobye
EN08 dogcatcatdog
EN09 catcattypehello
EN10 typehellobyedogcatcatdog
EN10 typehellobyedogcatcatdogdog
I would like to count the amount of times... (9 Replies)
Discussion started by: verse123
9 Replies
9. AIX
Hi,
I have to install 5 servers with same OS level and same packs,
i wonder if there is an way to install 1 and then copy or clone the instalattion to the other 4?
any suggetions?
Rgs, (1 Reply)
Discussion started by: prpkrk
1 Replies
10. Programming
Hello to all guys,
Maybe some expert could help me.
I have a working ruby script shown below that reads a big binary file (more than 2GB). The chunks of data I want to analyze
is separated by the sequence FF47 withing the binary. So, in the ruby script is defined as "line separator" =... (10 Replies)
Discussion started by: Ophiuchus
10 Replies
LEARN ABOUT DEBIAN
synce_info_new
SYNCE_INFO_NEW(3) http://www.synce.org/ SYNCE_INFO_NEW(3)
NAME
synce_info_new - allocate a new SynceInfo struct
SYNOPSIS
#include <synce.h>
SynceInfo *synce_info_new(const char *device_name);
void synce_info_destroy(SynceInfo *info);
const char *synce_info_get_name(SynceInfo *info);
bool synce_info_get_os_version(SynceInfo *info, int os_major, int os_minor);
int synce_info_get_build_number(SynceInfo *info);
int synce_info_get_processor_type(SynceInfo *info);
const char *synce_info_get_os_name(SynceInfo *info);
const char *synce_info_get_model(SynceInfo *info);
const char *synce_info_get_device_ip(SynceInfo *info);
const char *synce_info_get_local_ip(SynceInfo *info);
int synce_info_get_partner_id_1(SynceInfo *info);
int synce_info_get_partner_id_2(SynceInfo *info);
const char *synce_info_get_object_path(SynceInfo *info);
pid_t synce_info_get_dccm_pid(SynceInfo *info);
const char *synce_info_get_transport(SynceInfo *info);
const char *synce_info_get_password(SynceInfo *info);
int synce_info_get_key(SynceInfo *info);
DESCRIPTION
The synce_info_new() function returns a pointer to a newly allocated and populated SynceInfo struct for a mobile device.
If device_name is non-NULL, the returned struct relates to a mobile device with that name, or NULL if no device of that name is connected.
If device_name is NULL, the exact behaviour depends on the flavour of dccm daemon in use. When using vdccm(1) or the deprecated dccm(1),
the current active device is selected. This is usually the last device connected, specifically that described in the active_connection file
which is by default in the ~/.synce/ directory. With odccm(1) the first device connected will be returned. With synce-hal this depends on
the device(s) in question, and should be considered undefined.
This struct should be freed with synce_info_destroy(3).
typedef struct _SynceInfo {
pid_t dccm_pid; /* process id of dccm daemon */
char* device_ip; /* device ip address */
char* local_iface_ip; /* local interface ip address */
char* password; /* device password */
int key; /* device pass key */
int os_major; /* device OS major version */
int os_minor; /* device OS minor version */
int build_number; /* OS build number */
int processor_type; /* device processor */
int partner_id_1; /* first sync partner id number */
int partner_id_2; /* second sync partner id number */
char* name; /* device name */
char* os_name; /* device OS name eg. PocketPC */
char* model; /* device hardware name */
char* transport; /* interface type */
char* object_path; /* path to device's information */
} SynceInfo;
These fields must be accessed with the synce_info_get_ functions. The particular fields populated depend on the flavour of dccm daemon in
use.
The use of dccm(1) is deprecated. When using vdccm(1) all fields are populated except for local_iface_ip and os_minor. With odccm(1) and
synce-hal, dccm_pid, password, key, build_number, partner_id_1 and partner_id_2 are not used. odccm(1) also does not populate
local_iface_ip.
RETURN VALUE
The synce_info_new() function returns a pointer to the allocated SynceInfo struct, or NULL if an error occured.
SEE ALSO
synce(7), odccm(1), vdccm(1)
The SynCE Project 2007-08-26 SYNCE_INFO_NEW(3)