[opencms-dev] Re: cmsshell.sh rocks my world.

Joe Desbonnet jdesbonnet at gmail.com
Thu Apr 6 14:13:10 CEST 2006


Thanks, I'll check that out  and maybe put together some doc on it.

As a related aside I was thinking writing a Linux module to expose the
OpenCms VFS as a real file system on Linux. I'm not sure how best to
handle OpenCms file properties though -- one idea is for each file to
have a another virtual file with a ".properties" suffix. This file
would expose the file properties in traditional Java ".properties"
format or XML.

Would anyone find such software useful?

Joe.



On 4/6/06, Nigel Kersten <nigel at cofa.unsw.edu.au> wrote:
> "Joe Desbonnet" <jdesbonnet at gmail.com> writes:
>
> > Oh, this is new to me... what is cmsshell.sh? It is not in the
> > documentation.
>
>
> Just to make it clearer, as it took me a few minutes to get going...
>
> If you save a text file with these contents as say /path/to/
> script.txt...
>
> login "Admin" "youradminpassword"
> setCurrentProject "Offline"
> createResource "/sites/mysite/path/to/staff/profiles/lukekillen" 67
> writeProperty "/sites/mysite/path/tostaff/profiles/lukekillen"
> "Title" "Luke Killen"
> chacc "/sites/mysite/path/to/staff/profiles/lukekillen" "USER"
> "lukekillen" "+r+w+v+c+d"
> quit
>
> then you can run this as:
>
> ./cmsshell.sh -script=/path/to/script.txt
>
> so it's really simple to write other scripts that generate the
> appropriate scripts for cmsshell scripts.
>
> The one thing that is really missing is the ability to use
> CmsXmlContentFactory etc.... that would make this complete.
>
>
> _______________________________________________
> This mail is sent to you from the opencms-dev mailing list
> To change your list options, or to unsubscribe from the list, please visit
> http://lists.opencms.org/mailman/listinfo/opencms-dev
>



More information about the opencms-dev mailing list