I am trying to do a find file command on a directory and delete files older then 30 days and I am getting an error saying that the parameter list that I am passing to the rm command is to long. Here is my command:
find ~mydir/* -type f -mtime +$30 | xargs -i -exec rm -rf {} \;
ksh:... (3 Replies)
Hi there
I get this error message when I try to do a basic grep. Does anyone have any ideas what is wrong. Thanks
0403-027 The parameter list is too long. (1 Reply)
Hi
When i say ls * (HP-UX 11.11)in a particular directory it says
sh: /usr/bin/ls: The parameter list is too long.
Can somebody help me how to resolve this problem. (2 Replies)
This is one of shell things I guess. I have a directory in a production server that contains about 20,000 files. It gets cleaned up every week and is kept in check that it does not get out of hand.
Here is my problem.
When I perform a ls -ltr, I get the listing. However should I parameterize... (4 Replies)
Hi all,
I have a lot of files in my audit log directory which i am trying to tar. However, i hit the below error:
ksh: /usr/bin/tar: 0403-027 The parameter list is too long.
Is there any work around to resolve this problem? I need to tar all the files up.
Thanks. (5 Replies)
Hi,
I'm trying to list specific files and redirecting to a file
ls aqp* > temp.lst
but getting "/usr/bin/ls: 0403-027 the parameter list is too long." error. I just have 236 files in the directory.
I tried "ls | grep 'aqp*' > temp.lst" too, but nothing was redirected.
+ grep aqp*
+... (4 Replies)
Hello All,
We have a batch job that clean old records. This run a script to back up file then delete. Unfortunately, this job been failing lately. This is the error we received.
"/usr/bin/compress: 0403-027 The parameter list is too long."
I am not sure if the job failed since its... (2 Replies)
I ran this script in AIX 5L environment and getting an error
usr/bin/ls: 0403-027 The parameter list is too long
Our administrator had increased the maxium allowable size of the ARG/ENV list but it still doesn't work.
I have tested the command in red below in the unix prompt and it works just... (13 Replies)
Hi,
I am getting the below error message When i am trying to delete the files from the directory.Could you please guide me?
rm *.aud
ksh: /usr/bin/rm: 0403-027 The parameter list is too long.
and
find /oracle/admin/testP/adump/*.aud -mtime +5 -exec rm {} \;
ksh: /usr/bin/find:... (3 Replies)
Hi we are using AIX 5.3 64bit
I have near about 79000 log file having naming convention like "IFTMBCSun Aug 14 07:45:00 PAKST 2011".
This naming convention was created by a script error, now we need to rename these log file by removing extar spaces and (:) colon for that we wrote below script
... (4 Replies)
Discussion started by: lodhi1978
4 Replies
LEARN ABOUT ULTRIX
rpc_name_to_sockaddr
rpc_name_to_sockaddr(3ncs)rpc_name_to_sockaddr(3ncs)Name
rpc_name_to_sockaddr - convert a host name and port number to a socket address (client or server)
Syntax
#include <idl/c/rpc.h>
void rpc_$name_to_sockaddr(name, nlength, port, family, sockaddr, slength, status)
unsigned char name;
unsigned long nlength;
unsigned long port;
unsigned long family;
socket_$addr_t *sockaddr;
unsigned long *slength;
status_$t *status;
Arguments
name A string that contains a host name and, optionally, a port and an address family. The format is family:host[port],
where family: and [port] are optional. If you specify a family as part of the name parameter, you must specify
socket_$unspec in the family parameter. The family part of the name parameter is ip; host is the host name; port is an
integer port number.
nlength The number of characters in name.
port The socket port number. This parameter should have the value rpc_$unbound_port if you are not specifying a well-known
port; in this case, the returned socket address will specify the Local Location Broker (LLB) forwarding port at host.
If you specify the port number in the name parameter, this parameter is ignored.
family The address family to use for the socket address. This value corresponds to the communications protocol used to access
the socket and determines how the sockaddr is expressed. If you specify the address family in the name parameter, this
parameter must have the value socket_$unspec.
sockaddr The socket address corresponding to name, port, and family.
slength The length, in bytes, of sockaddr.
status The completion status. If the completion status returned in is equal to status_$ok , then the routine that supplied it
was successful.
Description
The routine provides the socket address for a socket, given the host name, the port number, and the address family.
You can specify the socket address information either as one text string in the name parameter or by passing each of the three elements as
separate parameters( name, port, and family ); in the latter case, the name parameter should contain only the hostname.
Diagnostics
This section lists status codes for errors returned by this routine in
rpc_$not_in_call An internal error.
rpc_$proto_error An internal protocol error. This routine has been superseded by the routine.
FilesSee Alsointro(3ncs), rpc_sockaddr_to_name(3ncs), socket_from_name(3ncs)rpc_name_to_sockaddr(3ncs)