01-05-2009
Hi,
We are using AIX flavour and the decimal number comparison is working fine.
Pls let me know if this is because of the unix flavour.
Thanks
9 More Discussions You Might Find Interesting
1. UNIX for Advanced & Expert Users
I'm trying to compile and install both most recent version of 'make' and the
most recent version of 'openssh' on my Sparc20.
I've run into the following problems... and I don't know what they mean. Can
someone please help me resolve these issues?
I'm using the 'make' version that was... (5 Replies)
Discussion started by: xyyz
5 Replies
2. UNIX for Dummies Questions & Answers
Hi
how can i do this?
1) shell script which writes data and time on to a file if filesystem exceeds 70% of space.
2) make entry to cron table to run a script every 15 mins.
and can anyone expplain or demonstrate the difference between variables used in inside a function and outside a... (3 Replies)
Discussion started by: vivekshankar
3 Replies
3. UNIX for Advanced & Expert Users
Hi,
I,ve a Unixware 7.1.3 working correctly for two years ago, since a several weeks I've a problem with the command last . The information that this command return is :
For example :
1.- The user root , time login : 12:15 h, time logoff 12:15 h (the real time is 14:00). Connected time is... (3 Replies)
Discussion started by: By_Jam
3 Replies
4. UNIX for Dummies Questions & Answers
Hello,
I am having problems with using less on
Linux version 2.6.18-92.1.17.el5 (brewbuilder@hs20-bc1-7.build.redhat.com) (gcc version 4.1.2 20071124 (Red Hat 4.1.2-42)). I am using csh but have the same problems on bash.
If I pipe something to less it works perfectly i.e. cat file | less... (9 Replies)
Discussion started by: z1dane
9 Replies
5. Shell Programming and Scripting
Hello, I have the following piece of code that tries to retrieve the result of a .sh:
. $HOME/prueba/Scripts/Recogida/recogida_sedra.sh
resultado=$?
echo "el resultado es : $resultado"
if ; then
echo "Se va a preprocesar los archivos"
In the code of recogida.sh I have the... (8 Replies)
Discussion started by: danietepa
8 Replies
6. SuSE
good friends I am new to linux and I have the following
TELNET service problem entering data devo
telnet to a Windows server 2003 server and passes
will not let me since the move to this server by
telnet tells me the characters and thus invalidates me
income, I have a service application... (1 Reply)
Discussion started by: pepetico
1 Replies
7. UNIX for Dummies Questions & Answers
I have written the following code in cygwin to create directories in windows based on the parameter passed.
echo $1 > fullpath
path1=`awk -F / '{print $1}' $fullpath
path2=`awk -F / '{print $2}' $fullpath
if
then
if
then
if
then
continue
... (4 Replies)
Discussion started by: janardhanamk
4 Replies
8. Shell Programming and Scripting
#! /bin/bash
# ask what the user would like to do
CMD=$CMD
MBA=$MB
RS=$RS
CT=$CT
echo
echo -n "What would you like to do??
REMEMBER WHEN PROGRAMMING ICP's TO SELECT CORRECT COMMAND ACCORDING TO
NECCESSARY TYPE CODE!
Please enter a command
ct = program ctek
... (5 Replies)
Discussion started by: tdalyman
5 Replies
9. Shell Programming and Scripting
I'm new in Shell Programming and Scripting, I would like to ask some questions.
ps -ef | grep $appNAme | grep -v grep <-- what will it return when it find a process is running? return 1 or 0
if
then
exit 1 <--- if = 0 , run this ?
else
continue <--- if = 1 , run this ?... (5 Replies)
Discussion started by: LoAlex
5 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)