LinkBack Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 03-Nov-2009, 10:37 AM
SROSeaner's Avatar
Senior Member
 
Join Date: Sep 2007
Posts: 142
SROSeaner 0 reputation points
Default Problems with ATTRIB in scripting

I have written a shell script that gets me a list of all attributes on an NSS volume using the command attrib.

Unfortunately, I cannot seem to get scripting and attrib to work well together.

If my script is in /root/bin and it does the following:

filepath="/media/nss/DATA/This\ Is\ My\ Test.txt"
attrib $filepath

It results in an error stating it cannot get attributes on the following file:
/root/bin/media/nss/DATA/This\ Is\ My\ Test.txt

Attrib keeps putting my PWD in front, and I cannot seem to pipe the path to the attrib command either!

Please help
__________________
--------------------------------------------
Sean [CPA|Net+|Linux+|CNA|CNE|CLA|CLP|NCE-ES]
--------------------------------------------
Reply With Quote
 

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -6. The time now is 10:18 AM.


© 2007 Novell, Inc. All Rights Reserved.

Search Engine Friendly URLs by vBSEO 3.3.0 RC2