Sponsored Content
Top Forums UNIX for Dummies Questions & Answers what is the maximum length of th os-command line in Unix. Post 302147669 by porter on Wednesday 28th of November 2007 03:27:03 AM
Old 11-28-2007
You are asking two things there...

1. maximum length of a command line, this is OS dependent but it is in the order of thousands of characters.

2. maximum length of a file path, typically 1024 characters, look for FILENAME_MAX in a header in /usr/include
 

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 for Korn shell

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

3. 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

4. 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

5. UNIX for Dummies Questions & Answers

How to increase the maximum record length

Hi, I need to create a file of record length more than 300 characters. But in my unix box, i am able to create a file only with a maximum of 256 characters per record. Is there anyway i can create a file with more than 300 characters in this case? Or How to increase the maximum record... (1 Reply)
Discussion started by: mahish20
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

Maximum command line arguments

Hi, Can anyone please help me to know what is the maximum number of command line arguments that we can pass in unix shell script? Thanks in advance, Punitha.S (2 Replies)
Discussion started by: puni
2 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
LCG_LIMITS(4)							   File Formats 						     LCG_LIMITS(4)

NAME
Castor_limits - LCG internal limits SYNOPSIS
#include <Castor_limits.h> DESCRIPTION
The Castor_limits.h header file contains all the common limits that all LCG subpackages have to respect. These are: CA_MAXACLENTRIES maximum number of ACL entries for a file/dir Default value: 300 CA_MAXCLASNAMELEN maximum length for a fileclass name Default value: 15 CA_MAXCOMMENTLEN maximum length for user comments in metadata Default value: 255 CA_MAXDENFIELDS maximum number of density values in devinfo Default value: 8 CA_MAXDENLEN maximum length for a alphanumeric density Default value: 8 CA_MAXDGNLEN maximum length for a device group name Default value: 6 CA_MAXDPMTOKENLEN maximum length for a Disk Pool Manager token Default value: 36 CA_MAXDVNLEN maximum length for a device name Default value: 63 CA_MAXDVTLEN maximum length for a device type Default value: 8 CA_MAXFIDLEN maximum length for a fid (DSN) Default value: 17 CA_MAXFSEQLEN maximum length for a fseq string Default value: 14 CA_MAXGID maximum value for gid Default value: 0x7FFFFFFF CA_MAXGRPNAMELEN maximum length for a group name Default value: 2 CA_MAXGUIDLEN maximum length for a guid Default value: 36 CA_MAXHOSTNAMELEN maximum length for a hostname Default value: 63 CA_MAXLBLTYPLEN maximum length for a label type Default value: 3 CA_MAXLINELEN maximum length for a line in a log Default value: 1023 CA_MAXMANUFLEN maximum length for a cartridge manufacturer Default value: 12 CA_MAXMLLEN maximum length for a cartridge media_letter Default value: 1 CA_MAXMODELLEN maximum length for a cartridge model Default value: 6 CA_MAXNAMELEN maximum length for a pathname component Default value: 255 CA_MAXNBDRIVES maximum number of tape drives per server Default value: 32 CA_MAXPATHLEN maximum length for a pathname Default value: 1023 CA_MAXPOLICYLEN maximum length for a policy name Default value: 15 CA_MAXPOOLNAMELEN maximum length for a pool name Default value: 15 CA_MAXPROTOLEN maximum length for a protocol name Default value: 7 CA_MAXRBTNAMELEN maximum length for a robot name Default value: 17 CA_MAXRECFMLEN maximum length for a record format Default value: 3 CA_MAXREGEXPLEN maximum length for a regular expression Default value: 63 CA_MAXSFNLEN maximum length for a replica Default value: 1103 CA_MAXSHORTHOSTLEN maximum length for a hostname without domain Default value: 10 CA_MAXSNLEN maximum length for a cartridge serial nb Default value: 24 CA_MAXSTGRIDLEN maximum length for a stager full request id (must be >= nb digits in CA_MAXSTGREQID + CA_MAXHOSTNAMELEN + 8) Default value: 77 CA_MAXSTGREQID maximum value for a stager request id Default value: 999999 CA_MAXUID maximum value for uid Default value: 0x7FFFFFFF CA_MAXSYMLINKS maximum number of symbolic links Default value: 5 CA_MAXTAGLEN maximum length for a volume tag Default value: 255 CA_MAXTAPELIBLEN maximum length for a tape library name Default value: 8 CA_MAXUNMLEN maximum length for a drive name Default value: 8 CA_MAXUSRNAMELEN maximum length for a login name Default value: 14 CA_MAXVIDLEN maximum length for a VID Default value: 6 CA_MAXVSNLEN maximum length for a VSN Default value: 6 AUTHOR
LCG Grid Deployment Team LCG
$Date: 2007/02/03 11:16:45 $ LCG_LIMITS(4)
All times are GMT -4. The time now is 02:33 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy