Answer by nwk for Create a directory if it doesn't exist in TCL
You can do this in pure Tcl without exec: #!/usr/bin/env expect set path dir1/dir2/dir3 file mkdir $path ;# [file mkdir] in Tcl is like mkdir -p file attributes $path -owner system
View ArticleAnswer by Gilles for Create a directory if it doesn't exist in TCL
You can execute the mkdir command as a subprocess. exec mkdir -p -- $directory If you need to set the ownership as well but only when the directory is created, invoke a shell explicitly. exec sh -c "if...
View ArticleCreate a directory if it doesn't exist in TCL
I write expect script that login to remote machine and run there some scripts But I need also to verify the following Verify if directory /var/cti/adm/APP exists. If APP not exists under adm directory...
View Article
More Pages to Explore .....