Re: command exec in expect

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Friday 12 November 2004 07:13, diego.veiga@xxxxxxxxxxxxxx wrote:
> Hi guys,
>
> I'm trying to execute this part of a script in expect, but it
> seems that the exec command don't support | or ;

Try without the single quote......

Regards, Mike Klinke


expect1.1> set parsethis "test:one"
test:one

expect1.2> set machine [exec echo $parsethis | cut -d':' -f1];
cut: the delimiter must be a single character
Try `cut --help' for more information.
    while executing
"exec echo $parsethis | cut -d':' -f1"

expect1.3> set machine [exec echo $parsethis | cut -d : -f1];
test
 


-- 
redhat-list mailing list
unsubscribe mailto:redhat-list-request@xxxxxxxxxx?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/redhat-list

[Index of Archives]     [CentOS]     [Kernel Development]     [PAM]     [Fedora Users]     [Red Hat Development]     [Big List of Linux Books]     [Linux Admin]     [Gimp]     [Asterisk PBX]     [Yosemite News]     [Red Hat Crash Utility]


  Powered by Linux