05-19-2010
Scotton thank you so much for your reply....i need this program in C programming language not in unix.
![Thumbsup Smilie](https://www.unix.com/images/smilies/thumb.gif)
10 More Discussions You Might Find Interesting
1. UNIX for Advanced & Expert Users
Does anybody know if HP-UX uses any other directories besides /var/spool/lp/request to spool print jobs? I checked the man pages, and it only mentions /var/spool/lp in general. I was just wondering if anyone knew of some other place it might possibly use. thanks in advance for any help! (2 Replies)
Discussion started by: doeboy
2 Replies
2. UNIX for Dummies Questions & Answers
Hello All,
Can anyone please tell me how do i define the variable as decimal.
Below is my script. After division i get a whole number where as i want to see the decimal places also..
TABLEAVG=`expr ${TABLECHARS}/${TABLELINES} | bc`
EG: if TABLECHARS= 1280 and TABLELINES=44 the
O/P is... (6 Replies)
Discussion started by: OSD
6 Replies
3. UNIX for Advanced & Expert Users
hi ,
what is the meaning of log rotate?
how do i rotate /var/adm/wtmps log and gzip it? (6 Replies)
Discussion started by: cromohawk
6 Replies
4. Programming
i have an array
a={1,2,3,4,5}
the output should be
a= {4,5,1,2,3}
please help me writin this program in c. (10 Replies)
Discussion started by: pgmfourms
10 Replies
5. Shell Programming and Scripting
i need to multiplay a number with 1.00.. so that the output should contain two decimal places at end..
for example...
236 * 1.00 = 236.00
245.8 * 1.00 = 245.80
but when i perform multiplication it shows output as.
236
245.8
can anyone help me to get the actual output of... (11 Replies)
Discussion started by: arunmanas
11 Replies
6. Programming
I dont know why this Linux would give me badly placed () error all the time for this;
#include <stdio.h>
int main()
{
register int num=0 ;
while ((num < 5))
++num;
printf("Pass %d \n", num) ;
return 0 ;
}
can anyone help me please? (11 Replies)
Discussion started by: sizzler786
11 Replies
7. HP-UX
I need to rotate a file in HP-UX of a application. I´ve tried to do a task in the cron with a script (with sed and ed commands) but it was a successfully option (the application continued writing the file :( )
LINEAS_OUT=$(wc -l < $RMISTDOUT)
LINEAS_FIN=1,expr $LINEAS_OUT - 100p
sed... (19 Replies)
Discussion started by: werkraft
19 Replies
8. Shell Programming and Scripting
Hi,
I have below script in logrotate.d to rotate logs.
logs are not rotating after the file grow to 1k, do you have any idea? Is it because of it just only 1K?
Please let me know if the below syntax is in correct.
# more trotate
/sourcepath/*/servers/*/logs/*log... (2 Replies)
Discussion started by: lpprasad321
2 Replies
9. UNIX for Dummies Questions & Answers
My problem: Both access and error logs do not rotate any more and get really large.
They are located here: /srv/www/+vHost name here+/logs/
Configuration seems to be here:
/etc/logrotate.conf => looks OK, including "size 10M" to avoid large files
(/etc/logrotate.d => is empty)
manually... (4 Replies)
Discussion started by: floko
4 Replies
10. Shell Programming and Scripting
I used the below script to Sum up a field in a file based on some unique values. But the problem is when it is summing up the units, it is truncating to 2 decimals and not 6 decimals as in the input file (Input file has the units with up to 6 Decimals – Sample data below, when the units in the 2... (4 Replies)
Discussion started by: brlsubbu
4 Replies
LEARN ABOUT DEBIAN
rpc_xdr
RPC_XDR(3) BSD Library Functions Manual RPC_XDR(3)
NAME
xdr_accepted_reply, xdr_authsys_parms, xdr_callhdr, xdr_callmsg, xdr_opaque_auth, xdr_rejected_reply, xdr_replymsg -- XDR library routines
for remote procedure calls
LIBRARY
Standard C Library (libc, -lc)
SYNOPSIS
#include <rpc/rpc.h>
bool_t
xdr_accepted_reply(XDR *xdrs, struct accepted_reply *ar);
bool_t
xdr_authsys_parms(XDR *xdrs, struct authsys_parms *aupp);
bool_t
xdr_callhdr(XDR *xdrs, struct rpc_msg *chdr);
bool_t
xdr_callmsg(XDR *xdrs, struct rpc_msg *cmsg);
bool_t
xdr_opaque_auth(XDR *xdrs, struct opaque_auth *ap);
bool_t
xdr_rejected_reply(XDR *xdrs, struct rejected_reply *rr);
bool_t
xdr_replymsg(XDR *xdrs, struct rpc_msg *rmsg);
DESCRIPTION
These routines are used for describing the RPC messages in XDR language. They should normally be used by those who do not want to use the
RPC package directly. These routines return TRUE if they succeed, FALSE otherwise.
Routines
See rpc(3) for the definition of the XDR data structure.
xdr_accepted_reply()
Used to translate between RPC reply messages and their external representation. It includes the status of the RPC call in the XDR
language format. In the case of success, it also includes the call results.
xdr_authsys_parms()
Used for describing UNIX operating system credentials. It includes machine-name, uid, gid list, etc.
xdr_callhdr()
Used for describing RPC call header messages. It encodes the static part of the call message header in the XDR language format. It
includes information such as transaction ID, RPC version number, program and version number.
xdr_callmsg()
Used for describing RPC call messages. This includes all the RPC call information such as transaction ID, RPC version number, program
number, version number, authentication information, etc. This is normally used by servers to determine information about the client
RPC call.
xdr_opaque_auth()
Used for describing RPC opaque authentication information messages.
xdr_rejected_reply()
Used for describing RPC reply messages. It encodes the rejected RPC message in the XDR language format. The message could be
rejected either because of version number mis-match or because of authentication errors.
xdr_replymsg()
Used for describing RPC reply messages. It translates between the RPC reply message and its external representation. This reply
could be either an acceptance, rejection or NULL.
SEE ALSO
rpc(3), xdr(3)
BSD
May 3, 1993 BSD