02-08-2010
Thanks for your reply.
But when I pass them more then one(e.g in a recursive routine) it became inconvenient.
Regards,
Ziv
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi,
I am new to unix. Is their a way to pass the output of the line below to a variable var1.
ls -1t | head -1.
I am trying something like var1=ls -1t | head -1, but I get error.
Situation is: I get file everyday through FTP in my unix box. I have to write a script that picks up first... (1 Reply)
Discussion started by: rkumar28
1 Replies
2. Shell Programming and Scripting
I have a shell script which does the encryption of a file where i am passing the file name as a command line argument,but later on the script waits on the screen to enter Y or N
what is the command i should be using on the shell script
#!/bin/bash -x
outfilename=file.out
echo... (8 Replies)
Discussion started by: rudoraj
8 Replies
3. Shell Programming and Scripting
$$$$$ (5 Replies)
Discussion started by: asirohi
5 Replies
4. UNIX for Dummies Questions & Answers
Hi,
I have a very small requirement where i need to pass command output as an argument while invoking the shell script..
I need to call like this
sh testscript.sh ' ls -t Appl*and*abc* | head -n 1'
This will list one file name as ana argument..
I will be using "$1" in the shell... (2 Replies)
Discussion started by: pssandeep
2 Replies
5. Shell Programming and Scripting
i want to write a shell script function that will ftp the files passed in the command line . i have written a shell script for ftp but how will it do for all files passed in command line argument ,
i am passing 4 files as argument
./ftp.sh file1 file2 file3 file4
code written by me... (5 Replies)
Discussion started by: rateeshkumar
5 Replies
6. Shell Programming and Scripting
I have one working awk command line. Which taking data from the “J1202523.TXT” file and generating the “brazil.dat” file. PFB code.
awk '{ DUNS = substr($0,0,9);if ( substr($0,14,3) == "089" ) print DUNS }' J1202523.TXT > Brazil.dat
But now I want to pass two parameter as a command line argument... (4 Replies)
Discussion started by: humaemo
4 Replies
7. Programming
Hello all,
New to C and I'm trying to write a program which can run a unix command. Would like to have the option of giving the user the ability to enter arguments e.g for "ls" be able to run "ls -l".
I would appreciate any help.
Thanks
#include <stdio.h>
#include <unistd.h>
#include... (3 Replies)
Discussion started by: effizy
3 Replies
8. Shell Programming and Scripting
Hi,
I have a requirement to work on script, it should take either of arguments.
wrote it as below.
#!/bin/bash
usage() {
echo "$0: missing argument OR invalid option !
Usage : $0 -m|-r|-d
}
while getopts mrdvh opt; do
case "$opt" in
m) monitor_flag=monitor;;... (1 Reply)
Discussion started by: ramanaraoeee
1 Replies
9. Shell Programming and Scripting
I need to write a shell script, when I run that script I should pass those arguments if not, then script should not run and pass the error message like
invalid option - - should pass the argument.
and Exit from the script
https://www.unix.com/images/misc/progress.gif (1 Reply)
Discussion started by: Nsharma3006
1 Replies
10. UNIX for Dummies Questions & Answers
I need to write a shell script, when I run that script I should pass those arguments if not, then script should not run and pass the error message like
invalid option - - should pass the argument.
and Exit from the script (8 Replies)
Discussion started by: Nsharma3006
8 Replies
LEARN ABOUT OSF1
xdr_rejected_reply
rpc_xdr(3) Library Functions Manual rpc_xdr(3)
NAME
rpc_xdr, xdr_accepted_reply, xdr_authunix_parms, xdr_callhdr, xdr_callmsg, xdr_opaque_auth, xdr_rejected_reply, xdr_replymsg - XDR library
routines for ONC remote procedure calls
SYNOPSIS
#include <rpc/xdr.h>
xdr_accepted_reply( XDR *xdrs, struct accepted_reply *ar);
xdr_authunix_parms( XDR *xdrs, struct authunix_parms *aupp);
void xdr_callhdr( XDR *xdrs, struct rpc_msg *chdr);
xdr_callmsg( XDR *xdrs, struct rpc_msg *cmsg);
xdr_opaque_auth( XDR *xdrs, struct opaque_auth *ap);
xdr_rejected_reply( XDR *xdrs, struct rejected_reply *rr);
xdr_replymsg( XDR *xdrs, struct rpc_msg *rmsg);
DESCRIPTION
These routines allow C programs to make procedure calls on other machines across the network. First, the client calls a procedure to send
a data packet to the server. Upon receipt of the packet, the server calls a dispatch routine to perform the requested service, and then
sends back a reply. Finally, the procedure call returns to the client.
Unless otherwise indicated, the routines described in this reference page are thread safe (that is, they can be used safely in a multi-
threaded environment). Routines that are not thread safe are flagged as such. Encodes RPC reply messages. This routine is useful for
users who wish to generate RPC-style messages without using the RPC package. Describes UNIX credentials. This routine is useful for users
who wish to generate these credentials without using the RPC authentication package. Describes RPC call header messages. This routine is
useful for users who wish to generate RPC-style messages without using the RPC package. Describes RPC call messages. This routine is use-
ful for users who wish to generate RPC-style messages without using the RPC package. Describes RPC authentication information messages.
This routine is useful for users who wish to generate RPC-style messages without using the RPC package. Describes RPC reply messages.
This routine is useful for users who want to generate RPC-style messages without using the RPC package. Describes RPC reply messages.
This routine is useful for users who want to generate RPC-style messages without using the RPC package.
RELATED INFORMATION
rpc_clnt(3), rpc_misc(3), rpc_svc(3), xdr(3)
Remote Procedure Calls: Protocol Specifications - RFC 1050 delim off
rpc_xdr(3)