04-18-2008
limit of command length
Hi!
Can you please help me with one question?
Does rexec command have some limitation of the length of the deliveded cmd?
Thanks in advance,
Anta
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
I have installed vnc on my computer but do not want every one to be able to incite a vncserver
how can I limit users of the vncserver command to only a specifc group? (1 Reply)
Discussion started by: macdonto
1 Replies
2. Shell Programming and Scripting
Hi Friends,
I am having a funny problem with grep. When I run
grep 'expr' file.txt
things work fine. But when try to get the line number using the -n option, i.e,
grep -n 'expr' file.txt
I get a message, "grep: 0652-226 Maximum line length of 2048 exceeded."
If the line has more than... (3 Replies)
Discussion started by: hnhegde
3 Replies
3. Shell Programming and Scripting
Hi All,
I am using a csh ftp to get all the relevant files i need.
When i reduce the number of file to 4 (which is aaa,bbb,ccc,ddd), the script manage to get all the files i need. But when i add "eee" to the mget command, it doesn;t seem to get any files at all.
Is there a limit to how many... (0 Replies)
Discussion started by: Raynon
0 Replies
4. AIX
Hi,
I'm using AIX version 5.3 currently. I'm trying to create a user id, e.g. andyleong, which the system prompted the length is too long.
1. I would like to know is that the length of user id is limited to maximum 8 characters for AIX.
2. Is it apply to all versions of AIX?
If no... (2 Replies)
Discussion started by: meihua_t
2 Replies
5. UNIX for Dummies Questions & Answers
I want to find out the record length of a fixed length file? I forgot the command. Any body know? (9 Replies)
Discussion started by: tranq01
9 Replies
6. Cybersecurity
Hello,
I am currently trying to limit incoming UDP length 20 packets on a per IP basis to 5 a second using IPTables on a Linux machine (CentOS 5.2).
Basically, if an IP is sending more than 5 length 20 UDP packet a second to the local machine, I would like the machine to drop the excess... (1 Reply)
Discussion started by: tomboy123
1 Replies
7. Shell Programming and Scripting
I am trying to use the following code:
awk '{s=$0;if(length(s) < 750){getline; s=s " " $0}printf("%s\n",s)}' filename
but an error shows that 'awk' is too long. Is there a limit to the awk length function? and what could be an alternate solution for long fixed width records?
The code... (3 Replies)
Discussion started by: CKT_newbie88
3 Replies
8. Shell Programming and Scripting
I am using the code below to list all the Errors files from the directory in the for loop. When the number of files are less then 6000 then it's works fine but if it more than that then for loop fails.
for file in `ls $ERR_DIR/PPL_Prov_Engine_Error_*`
do
memrecno=`cut -f2 -d'|' $file` ||... (6 Replies)
Discussion started by: mr_harish80
6 Replies
9. Programming
Is there any stabdard limitation on size of a code line in C code?
I am interesting in UNIX limitation, particulary on SUN.
Thanks! (8 Replies)
Discussion started by: alex_5161
8 Replies
10. Shell Programming and Scripting
Hi. I'm trying to learn sed. I want to limit the length of a string. I tried this:
sed -n 's/^\(...........................\).*/\1/p' textfile.txt This works fine, but how do I give it as a range rather than putting a hundred dots?
I'd like to limit the number of characters to 144 for... (3 Replies)
Discussion started by: troglodytes
3 Replies
rexec(3x) rexec(3x)
Name
rexec - return stream to a remote command
Syntax
rem = rexec(ahost, inport, user, passwd, cmd, fd2p);
char **ahost;
u_short inport;
char *user, *passwd, *cmd;
int *fd2p;
Description
The subroutine looks up the host *ahost using returning -1 if the host does not exist. For further information, see Otherwise *ahost is
set to the standard name of the host. If a username and password are both specified, then these are used to authenticate to the foreign
host. If all this fails, the user is prompted for the information.
The port inport specifies which well-known DARPA Internet port to use for the connection; it will normally be the value returned from the
call ``getservbyname("exec", "tcp")''. For further information, see The protocol for connection is described in detail in
If the call succeeds, a socket of type SOCK_STREAM is returned to the caller and given to the remote command as stdin and stdout. If fd2p
is nonzero, then an auxiliary channel to a control process will be set up, and a descriptor for it will be placed in *fd2p. The control
process will return diagnostic output from the command (unit 2) on this channel and will also accept bytes on this channel as being UNIX
signal numbers, to be forwarded to the process group of the command. If fd2p is 0, then the stderr (unit 2 of the remote command) will be
made the same as the stdout and no provision is made for sending arbitrary signals to the remote process, although you may be able to get
its attention by using out-of-band data.
See Also
gethostent(3n), getservent(3n), rcmd(3x), rexecd(8c)
rexec(3x)