> > I have a few internal, very bad behaving apps that have the bad habit to > request user input without fail.
I know the feeling, I always work around this by (in Git) by doing: `SSH_ASKPASS=/bin/echo`, otherwise Git will prompt for a password whether or not stdin is a tty or not. Is there a way to detect when an app requests input over ssh? It doesn't work that way, apps don't *request* input. They just block reading stdin, depending how they do it, there is sometimes limited scope to know that they are reading, but in short, no. Or something like expect with a hook were we can hang an ask() or a default > input and subsequently pipe the input? Just wrap them in `/usr/bin/echo "mything" | mybadapp`, and then their stdin will be connected to /usr/bin/echo, not to the SSH session. In order to get the `mything` for the /usr/bin/echo line, you can of course use `ask()` Lee Hambley -- http://lee.hambley.name/ +49 (0) 170 298 5667 On 6 November 2013 22:24, Vassilis Rizopoulos <[email protected]>wrote: > I have a few internal, very bad behaving apps that have the bad habit to > request user input without fail. > Now I guess this is an sshkit question, but here goes: > Is there a way to detect when an app requests input over ssh? > Or something like expect with a hook were we can hang an ask() or a > default input and subsequently pipe the input? > > I think this would only work when there is no pty set as well (yeah, yeah > it is the default in cap v3). > > I know it's way off cap's use case but honestly I want to throw the > computer out the window every time that prompt comes up and it's destroying > all my automation attempts :) > Cheers, > V.- > > -- > http://www.ampelofilosofies.gr > > -- > -- > * You received this message because you are subscribed to the Google > Groups "Capistrano" group. > * To post to this group, send email to [email protected] > * To unsubscribe from this group, send email to capistrano+unsubscribe@ > googlegroups.com For more options, visit this group at > http://groups.google.com/group/capistrano?hl=en > --- You received this message because you are subscribed to the Google > Groups "Capistrano" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > For more options, visit https://groups.google.com/groups/opt_out. > -- -- * You received this message because you are subscribed to the Google Groups "Capistrano" group. * To post to this group, send email to [email protected] * To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/capistrano?hl=en --- You received this message because you are subscribed to the Google Groups "Capistrano" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/groups/opt_out.
