Is it possible to get the xwd file by typing some commands?

From: cookie (s2234319_at_pchome.com.tw)
Date: 02/26/05


Date: 25 Feb 2005 20:54:15 -0800

Dear Sir:

I am a college student and learning the NS-2. But now, I got some
problems and your helping will be much appreciated.

The followings are copied from the NS-2 document.

Nam animations can be saved and converted to animated gifs or MPEG
movies. To save the frames of your movie, first start nam with your
trace and set it up where you want it to start and adjust other
parameters (step rate, size, etc.) Select 'Record Animation' from the
File menu to start saving frames. Each animation step will be saved in
a X-window dump file called "nam%d.xwd" where %d is the frame number.
These files can then be assembled into animated GIFs or MPEGs with the
appropriate post-processing tools. The following shell script (sh, not
csh) converts these files into an animated gif.

As we see above, to convert the nam file to the xwd file, manually
operating the NAM is needed. Is there any method else that we can get
the xwd file without manually operating the NAM? Or is it possible to
get the xwd file by typing some commands, I mean the command line
mode, such as "nam –some_parameters xxx.nam yyy.xwd"?

Best regards,



Relevant Pages