Sponsored Content
Top Forums UNIX for Dummies Questions & Answers Maximum Command Length for Korn shell Post 89747 by jim mcnamara on Tuesday 15th of November 2005 02:02:15 PM
Old 11-15-2005
I'm assuming you're asking this because you want to get a bunch of files using a single command line.

For most ftp programs developed for your flavor of unix the ftp command accepts
a maximum of _POSIX_ARG_MAX characters.

This is in the /usr/include/limits.h file - the value is nornmally 4096.

However, this is not useful for a filename -- the limit there is _POSIX_PATH_MAX = 255 per file name.

Normally when you need to issue a get/put command for several files you can do
mget/mput instead. mget/mput allows a wild card file specification. Normally when you want to use mget/mput you call ftp like this

Code:
ftp -i <nodename>

to suppress prompting for each file.
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Maximum file name length

Hi folks, Can anybody tell me whether there is any limit on the file name length and directory name length in UNIX. (4 Replies)
Discussion started by: rkkiran
4 Replies

2. UNIX for Dummies Questions & Answers

Maximum Command Length

What is the maximum size of a command which can be given in telnet command prompt in unix? (2 Replies)
Discussion started by: miltony
2 Replies

3. UNIX for Dummies Questions & Answers

what is the maximum length of th os-command line in Unix.

Hi All, I didn't find any thread that match this question so I hope it's not redundant. I am totally new to Unix. I want to know what is the maximum length of the os-commandline in Unix. Will it cause any problem if I run any application whose total path length is much longer than 256... (2 Replies)
Discussion started by: kumardesai
2 Replies

4. UNIX for Dummies Questions & Answers

Maximum length of a path given as an argument to a shell script

hi, I am using solaris10. I have to write a bourne shell script, which copies files for the said destination path which is passed as an argument to the script. it looks like this myscript.sh /var/test -->destination path now i would like to know what is the maximum length i can... (3 Replies)
Discussion started by: raghu.amilineni
3 Replies

5. Shell Programming and Scripting

what is the maximum length of a unix shell variable which can be can passed to plsql

what is the maximum length of a unix shell variable which can be can passed to plsql variable:( (1 Reply)
Discussion started by: alokjyotibal
1 Replies

6. Shell Programming and Scripting

Maximum command length in bourne shell

Hi, I wanted to know what is the maximum length of command which can be run on a bourne (sh) shell? Where can I find that information? Is it different for different OS flavors? Please help. Thanks, Vineet (10 Replies)
Discussion started by: vineetd
10 Replies

7. Shell Programming and Scripting

Korn Shell Array maximum value less than other value

I have a text file with several key words that I am trying to isolate. I have grepped for the unknowns in the text file, but each unknown has a corresponding location. I have created an array that holds all the unknowns and another array that holds all of the locations and compares them based on... (12 Replies)
Discussion started by: ther2000
12 Replies

8. Shell Programming and Scripting

Is there a maximum length for a shell script command?

Is there a maximum length for a shell script command? How can I detect that in my OS? For example, if I have something like: command A | command B | command C | awk '{print $1 $2 $3 $4 $5}' then can we break the commands and also the arguments inside awk ? Thanks (11 Replies)
Discussion started by: hbar
11 Replies

9. Programming

Maximum length of a line

How can I change the maximum length of a programming line in fortran and C (specifically in fortran 77)? Seems the default maximum length is 72 in fortran 77. Thanks. (4 Replies)
Discussion started by: hbar
4 Replies

10. Shell Programming and Scripting

Maximum length of a string

good friends days I would love to know if I can help you know the length of a string example: cadena= "cual es mi largo" echo "cadena : $cadena# cadena :16 (7 Replies)
Discussion started by: tricampeon81
7 Replies
ECACCESS-FILE-MGET(1p)					User Contributed Perl Documentation				    ECACCESS-FILE-MGET(1p)

NAME
ecaccess-file-mget - Download Multiple ECaccess Files at once SYNOPSIS
ecaccess-file-mget -version|-help|-manual ecaccess-file-mget [-debug] [-progress] [-force] [-bufsize length] source-ecaccess-file [...] target-local-directory DESCRIPTION
Allow downloading Multiple ECaccess Files at once in the specified target-local-directory. Each source-ecaccess-file is in the form [domain:][/user-id/]path. Please read the "Shell commands -> File Management" section of the "ecaccess" guide for more information on the ECaccess File System. Please note this command is not recursive and will only download the plain-files in the source-ecaccess-file directory (sub-directories are ignored). ARGUMENTS
source-ecaccess-file [...] The name(s) of the source ECaccess File(s). target-local-directory The name of the target Local Directory. OPTIONS
-progress Provide a progress meter on the standard terminal, allowing to monitor the file transmission in real-time. The progress bar is removed from the terminal when the transmission is done. This option is not supported and ignored on Windows platforms. -force Overrides the interactive mode and download each file without prompting. -bufsize length Specify the length of the buffer (in bytes) which is used to download the files. The larger the buffer the smaller the number of http/s requests. By default a buffer of 1048576 bytes(1MB) is used. -version Display version number and exits. -help Print a brief help message and exits. -manual Prints the manual page and exits. -debug Display the SOAP messages exchanged. EXAMPLES
ecaccess-file-mget 'home:/xyz/bin/*.bin' $HOME/bin Download the *.bin Files in the $HOME/bin directory of the user xyz. The Files are downloaded in the local $HOME/bin directory. SEE ALSO
ecaccess-file-delete, ecaccess-file-get, ecaccess-file-chmod, ecaccess-file-modtime, ecaccess-file-mput, ecaccess-file-rmdir, ecaccess- file-copy, ecaccess-file-dir, ecaccess-file-mdelete, ecaccess-file-mkdir, ecaccess-file-move, ecaccess-file-put, ecaccess-file-size and ecaccess. perl v5.14.2 2012-04-16 ECACCESS-FILE-MGET(1p)
All times are GMT -4. The time now is 03:54 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy