From: Nuno R. L. Ferreira (nunolf_at_ci.uc.pt)
Date: Thu Feb 09 2006 - 10:28:22 CST

Hi Joseph

add exec before your unix command
Best
Nuno

----- Original Message -----
From: "Joseph Fernandez" <joefern9999_at_yahoo.com>
To: <vmd-l_at_ks.uiuc.edu>
Sent: Thursday, February 09, 2006 3:55 PM
Subject: vmd-l: uncompress files in tcl script

> Hi:
>
> I have multiple files that I would like to load in
> VMD. These are compressed (gzip) AMBER trajectory
> files. Due to space limitation on my machine, I would
> like to systematically uncompress a file, load the
> file, and compress the file within a tcl script; e.g.
>
> gunzip md_eq_001_nowat.mdcrd.gz
> mol addfile md_eq_001_nowat.mdcrd type crdbox first 0
> last -1 stride 1
> gzip md_eq_001_nowat.mdcrd
> gunzip md_eq_001_nowat.mdcrd.gz
> mol addfile md_eq_001_nowat.mdcrd type crdbox first 0
> last -1 stride 1
> gzip md_eq_001_nowat.mdcrd
> ...etc
>
> However, I get the following message in the Tk windown
> when I run the script:
>
> invalid command name "gunzip"
>
> How could I invoke the gunzip command within a tcl
> script.
>
> I look forward to you assistance on this matter.
>
> Joe
>
>
>
>
> __________________________________________________
> Do You Yahoo!?
> Tired of spam? Yahoo! Mail has the best spam protection around
> http://mail.yahoo.com
>
>
>
> ---
> avast! Antivirus: Inbound message clean.
> Virus Database (VPS): 0606-2, 07-02-2006
> Tested on: 09-02-2006 15:59:07
> avast! - copyright (c) 1988-2005 ALWIL Software.
> http://www.avast.com
>
>
>

---
avast! Antivirus: Outbound message clean.
Virus Database (VPS): 0606-2, 07-02-2006
Tested on: 09-02-2006 16:28:24
avast! - copyright (c) 1988-2005 ALWIL Software.
http://www.avast.com