12-03-2011
question
can while do make aloop as do while in c language ?
Last edited by teefa; 12-03-2011 at 11:18 AM..
10 More Discussions You Might Find Interesting
1. Programming
hi
i have created socket program with proper IP address and port no
client side port no 1085 and 1086
gateway side port no 1086 and 1085
and port no 1087 and 1088
receiver side port no 1088 and 1087
well it works fine on client and gateway side not on receiver and gateway side... (2 Replies)
Discussion started by: bhakti
2 Replies
2. Solaris
required Solaris 5.10 Kernel patch 137111-03
required Solaris 5.10 Fibre Channel Device Driver patch 125184-08
I want to know about the descriptions and what the patches will do. I searched www.sun.com (patches/updates) but don't see I am looking for. (1 Reply)
Discussion started by: Y4Net
1 Replies
3. Shell Programming and Scripting
Here is an awk statement i am using to sum a series of numbers..
awk -F"," '{ for (i=1; i<=NF ; ++i) sum += $i;} # if (i > max) max=i }
END { s=""; for (i=1; i<=max; ++i) { printf "%s%s", s, sum; s=","; } printf "\n" }' filename.csv
It works fine for the summing part. But since my series... (19 Replies)
Discussion started by: pravsripad
19 Replies
4. Shell Programming and Scripting
what is this error log = hda: irq timeout: error=0x00 and how to solve?
every day upon checking the logs i see this error.
hda: irq timeout: error=0x00
hda: irq timeout: error=0x00
hda: irq timeout: error=0x00
hda: irq timeout: error=0x00
hw_client: segfault at 0000000000000046 rip... (3 Replies)
Discussion started by: avtalan
3 Replies
5. Shell Programming and Scripting
Hi All !
I am just trying to print bash variable in awk statement as string
here is my script
n=1
for file in `ls *.tk |sort -t"-" -k2n,2`; do
ak=`(awk 'FNR=='$n'{print $0}' res.dat)`
awk '{print "'$ak'",$0}' OFS="\t" $file
n=$((n+1))
unset ak
doneI am getting following error
awk:... (7 Replies)
Discussion started by: Akshay Hegde
7 Replies
6. Solaris
Hi all,
OS is Solaros 10 Sparc
While doing Netbackup upgradation to 7.5 , the server was asked to reboot.
But then it came up in single user mode,
and after I typed format command it showed some disk error.
bash-3.00# format
Searching for disks...WARNING:... (2 Replies)
Discussion started by: manalisharmabe
2 Replies
7. Solaris
I keep getting "Too many open files" in /var/adm/messages that I do not know how to fix.
I've searched for solution on this forum and have increased the file descriptors limit but the problem persists.
The problem is happening in a solaris zone....
/var/adm/messages log example
May... (8 Replies)
Discussion started by: JT-KGY
8 Replies
8. Solaris
Hi Guys,
I just got this error:-
Your "cron" job on server2
/usr/5bin/ssh sysmgr@server1 /usr/local/bin/sudo /opt/local/pdm/bin/mount_pdmprod
produced the following output:
** /dev/rdsk/c1t5006016C446023DEd0s2
** /dev/rdsk/c1t5006016C446023DEd1s2
** /dev/rdsk/c1t5006016C446023DEd2s2... (2 Replies)
Discussion started by: manalisharmabe
2 Replies
9. Shell Programming and Scripting
hi all,
i had the below script
filename = /osa/data1/output.txt
printf '%27s%53s\n' ' CURRENT DATE' 26-08-2014 >> $filename
iam getting the ambigiuos redirect error in the 2nd line of the code...please guide me
regards,
vasa saikumar (3 Replies)
Discussion started by: hemanthsaikumar
3 Replies
10. UNIX for Beginners Questions & Answers
Hi Folks -
I'm getting the following error message when executing my script:
$ chmod +x Winexe_Admin.sh
$ ./Winexe_Admin.sh
Script Name: Winexe_Admin.sh
Script Name without EXT: Winexe_Admin
./Winexe_Admin.sh: line 43: ${_MAINPATH}${_LOGPATH}${LOGPATH$}${_YEAR}_${_MONTH}${_DAY}: bad... (2 Replies)
Discussion started by: SIMMS7400
2 Replies
LEARN ABOUT CENTOS
xtsetlanguageproc
XtSetLanguageProc(3) XT FUNCTIONS XtSetLanguageProc(3)
NAME
XtSetLanguageProc - set the language procedure
SYNTAX
Widget XtSetLanguageProc(XtAppContext app_context, XtLanguageProc proc, XtPointer client_data);
ARGUMENTS
app_context
Specifies the application context in which the language procedure is to be used, or NULL.
proc Specifies the language procedure, or NULL.
client_data
Specifies additional client data to be passed to the language procedure when it is called.
DESCRIPTION
XtSetLanguageProc sets the language procedure that will be called from XtDisplayInitialize for all subsequent Displays initialized in the
specified application context. If app_context is NULL, the specified language procedure is registered in all application contexts created
by the calling process, including any future application contexts that may be created. If proc is NULL a default language procedure is reg-
istered. XtSetLanguageProc returns the previously registered language procedure. If a language procedure has not yet been registered, the
return value is unspecified but if this return value is used in a subsequent call to XtSetLanguageProc, it will cause the default language
procedure to be registered.
The default language procedure does the following:
o Sets the locale according to the environment. On ANSI C-based systems this is done by calling setlocale( LC_ALL, language ). If an
error is encountered a warning message is issued with XtWarning.
o Calls XSupportsLocale to verify that the current locale is supported. If the locale is not supported, a warning message is issued with
XtWarning and the locale is set to ``C''.
o Calls XSetLocaleModifiers specifying the empty string.
o Returns the value of the current locale. On ANSI C-based systems this is the return value from a final call to setlocale( LC_ALL, NULL
).
A client wishing to use this mechanism to establish locale can do so by calling XtSetLanguageProc prior to XtDisplayInitialize.
SEE ALSO
X Toolkit Intrinsics - C Language Interface
Xlib - C Language X Interface
X Version 11 libXt 1.1.4 XtSetLanguageProc(3)