From: Axel Kohlmeyer (akohlmey_at_gmail.com)
Date: Wed Mar 25 2015 - 11:21:03 CDT

On Wed, Mar 25, 2015 at 11:56 AM, Stephan Grein
<grein_at_informatik.uni-frankfurt.de> wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA512
>
> .. and one more question:
>
> if i execute my script that way,
> the command "clear" is not available, whereas when i invoke vmd and
> type in my terminal "clear" it is available - is clear a tcl command
> only available in interactive mode?

clear is NOT a Tcl command.

when you are in interactive mode, the tcl shell forwards all unknown
commands to the underlying shell (try this with "ls"). in a script
you'll have to use "exec".

axel.

>
> best regards,
> Stephan
>
> Am 25/03/15 um 13:20 schrieb Morgan, Brittany:
>> Try: vmd -dispdev text -eofexit < script.tcl > log.out
>>
>> ________________________________________ From:
>> owner-vmd-l_at_ks.uiuc.edu [owner-vmd-l_at_ks.uiuc.edu] on behalf of
>> Stephan Grein [grein_at_informatik.uni-frankfurt.de] Sent: Wednesday,
>> March 25, 2015 7:00 AM To: vmd-l_at_ks.uiuc.edu Subject: vmd-l:
>> Running TCL scripts (textmode) on a Server
>>
>> Dear Users,
>>
>> I have various TCL scripts which i load on my Desktop Computer
>> with the TK/TCL LoadFile Dialog and execute these scripts
>> afterwards.
>>
>> Now I want to use my TCL Scripts to be executed by VMD in text
>> mode, i. e. i call vmd binary and it should load the tcl script
>> automatically.
>>
>> I know I could load vmd and do "package require Tcl; source
>> myscript.tcl" - but i want to automate that task, since i have
>> many Tcl scripts present.
>>
>> Instead I would like to say something like this: vmd
>> -execute_tcl_script /path/to/tcl/script.tcl
>>
>> Best regards and thanks in advance, Stephan
>>
> -----BEGIN PGP SIGNATURE-----
> Comment: GPGTools - https://gpgtools.org
>
> iQIcBAEBCgAGBQJVEtrEAAoJEH3H1/1zsiJLikYQAK7b94IRyLZA87V/gg6l8W6c
> 7LkdOPKB+3/NW621N9KnlvJUlyo3HRSxbHpUcC7tNfMsuUlb0v/ntmnaD96QHVFe
> /CcRCJTlg2cF1QXeQIrMwmHSBx7sRNFiio/wXEPIJG0hQx5xyOzap+UmbZbMIrEM
> 7D9hH2ia2tPujHcV6wTOUysw1ck1rxuf6O18G7B4m1P6+U2d0UX02WPDuCGr8EYS
> 8m2G9Gzo9CkmILLahae7P6uLoCuceydumJQn9Pu5aKKMSMRGxYhYKTmJIf5zy8zT
> SJtoyLepDfNHJ8uIKK54TJwQcDJIsB0/C/KXfF7zm5TSyaN0O8jPZ0jwIT2ei38n
> VTaPDxFvEHjzczoO+0w9Tjz4Ook6tRCAgaThoWEWQqSIUi4GnIscygifUzgdbQfV
> QOuPiE2IDFeMsHz18haHjZ8kKMYkjTuWjvTDiTlGsQWsyle7LKPaPTTVeYuYoIq3
> D2sqDnHRHKokXcscHbLGnk17MjfUqYMarIllpU6Go1Kmo9w2xKuUrDT7N7aw3+18
> jYOjULifsq9eg67plZrMpCcM+M0hP2L5BsI3Hc8mZPf95G2KyjEd4Rp88Bp5m7cL
> 1FA3dAdpEdETD3uSQ4Q+BE2MkZ388Zv63xKeTBeTbO7RHerUcJqOZRvTwWiZOkus
> Ohk/rMGqkGsvL2gSlNfi
> =VWJY
> -----END PGP SIGNATURE-----
>

-- 
Dr. Axel Kohlmeyer  akohlmey_at_gmail.com  http://goo.gl/1wk0
College of Science & Technology, Temple University, Philadelphia PA, USA
International Centre for Theoretical Physics, Trieste. Italy.