Quantcast
Channel: Active questions tagged expect - Unix & Linux Stack Exchange
Viewing all articles
Browse latest Browse all 158

expect script to get its directory ?

$
0
0

a bash script can be BASEDIR=$(dirname $0) but how do I do that in expect script ?

If I use BASEDIR=[dirname $argv0] I get the error "invalid command name "dirname".


Viewing all articles
Browse latest Browse all 158

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>