Hello,
I'm trying to create a file is the users home directory that loads the module. My test modulefiles is as follows:
#%Module
##
#
set myhome $::env(HOME)
set outfile [open "$myhome/tmpfile" "w"]
puts $outfile "# test config file"
puts $outfile "myhome $myhome"
flush $outfile
close $outfile
But, I get an error:
ERROR around line# 6 with modulefile 'test/borno':
couldn't open "$::env(HOME)/tmpfile": No such file or directory
What the proper way to do this?
Thanks in advance!
---
Thomas Borneman
Engineering Labs
System Administration
bo...@hp...<mailto:bo...@hp...>
(715) 726-7606 Office
Chippewa Falls, WI
hpe.com
[hpesm_pri_grn_pos_email_011116]
|