Maximum length of a path given as an argument to a shell script | Unix Linux Forums | UNIX for Dummies Questions & Answers

  Go Back    


UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !!

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

UNIX for Dummies Questions & Answers


Tags
legth of the positional parameter, shell script, shell scripting, unix scripting, unix scripting basics

Closed Thread    
 
Thread Tools Search this Thread Display Modes
    #1  
Old 12-15-2008
raghu.amilineni
Guest
 
Posts: n/a
Java 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 given as the destination path here? what is the maximum a solaris accepts?

thans in advance.

RaghuDeep Amilineni
Sponsored Links
    #2  
Old 12-15-2008
nj78 nj78 is offline
Registered User
 
Join Date: Jul 2005
Last Activity: 10 December 2010, 4:55 PM EST
Location: Northern California
Posts: 115
Thanks: 0
Thanked 0 Times in 0 Posts
These two commands may help you possibly:

getconf NAME_MAX .

getconf PATH_MAX .
Sponsored Links
    #3  
Old 12-16-2008
raghu.amilineni
Guest
 
Posts: n/a
Quote:
Originally Posted by nj78 View Post
These two commands may help you possibly:

getconf NAME_MAX .

getconf PATH_MAX .
thank you,

but i get this message when i execute the command i get a message like this.

# getconf PATH_MAX
usage: getconf [-v specification] system_var
getconf [-v specification] path_var pathname
getconf -a
    #4  
Old 12-17-2008
nj78 nj78 is offline
Registered User
 
Join Date: Jul 2005
Last Activity: 10 December 2010, 4:55 PM EST
Location: Northern California
Posts: 115
Thanks: 0
Thanked 0 Times in 0 Posts
Sorry, please add the . char after PATH_MAX.
Sponsored Links
Closed Thread

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Maximum command length in bourne shell vineetd Shell Programming and Scripting 10 10-29-2009 11:12 AM
what is the maximum length of a unix shell variable which can be can passed to plsql alokjyotibal Shell Programming and Scripting 1 02-23-2009 07:27 AM
Maximum Command Length miltony UNIX for Dummies Questions & Answers 2 11-19-2005 11:25 AM
Maximum Command Length for Korn shell miltony UNIX for Dummies Questions & Answers 2 11-15-2005 04:19 PM
Maximum file name length rkkiran UNIX for Dummies Questions & Answers 4 01-30-2002 11:31 AM



All times are GMT -4. The time now is 01:54 PM.