info-cvs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: loginfo parameters


From: Jennifer Hamilton
Subject: RE: loginfo parameters
Date: Wed, 15 Aug 2001 16:17:58 -0700

If loginfo is a shell script, perhaps you use the escape character "\"
to show that the space should be used literally.

example, 
/project/docs/use\ cases/my\ use\ case.doc

Jen

-----Original Message-----
From: CORUM, M E [AG/1000] [mailto:address@hidden
Sent: Wednesday, August 15, 2001 3:46 PM
To: 'address@hidden'
Subject: loginfo parameters



I'm trying to use loginfo to run a script that exports a file out and
then copies it somewhere.  The problem is that the project team must
use spaces in its directories and file names.  When the parameter for
the file name (%s) comes into the script, the last slash is removed and
only a single space separates the directory from the file name.  If
both the directory and file name have spaces, there is no way to tell
where the directory ends and the file name begins:

/project/docs/use cases/my use case.doc

gets handed into the loginfo script as:

/project/docs/use cases my use case.doc

Can anybody help here?  Is there some secret way to have it just hand
in the directory in a parm?  I can't hard-code the directories into
the loginfo file because they will be adding new directories hourly
and I wouldn't be able to keep up with their requirements for adding
new lines into the loginfo script.  The online version of the Fogel
book implies that there are two spaces between the directory and the
list of files but that is not the case in 1.10.

Any help would be appreciated.

Mike

_______________________________________________
Info-cvs mailing list
address@hidden
http://mail.gnu.org/mailman/listinfo/info-cvs



reply via email to

[Prev in Thread] Current Thread [Next in Thread]