Hi,
I tried to get fancy / tweak the php run command, but in the proccess I broke it.
I have a machine on our network that I have mounted as a shared drive. I'm trying to define a variable for the project that is its url and then changa the run command (modeled after lookup keyword), to be: exit_show_html "<meta http-equiv='Refresh' content='0;URL=$TM_PROJ_URL/$TM_FILEPATH
The problem is that filepath is full.
Any ideas?
-- dc ----- David Clark Web Specialist Institute for Community Inclusion (http://www.communityinclusion.org/) david.clark@umb.edu (617) 287-4318
David Clark wrote:
content='0;URL=$TM_PROJ_URL/$TM_FILEPATH
The problem is that filepath is full.
If you want to only have the filename, than you could use $TM_FILENAME.
But I'm guessing you know about that one and require the path within the project.
In that case, you might want to try ${TM_FILEPATH#$TM_PROJECT_DIRECTORY} (TM_FILEPATH with the prefix TM_PROJECT_DIRECTORY removed, see "man sh", section on parameter expansion.)
Jeroen.