pipe to adop: stty: standard input: Inappropriate ioctl for device

Clash Royale CLAN TAG#URR8PPP
up vote
1
down vote
favorite
bash-3.2$ echo "apps" | adop -status
stty: standard input: Invalid argument
Enter the APPS password: stty: standard input: Invalid argument
I tried like this also stty -ixon;echo "apps" | adop -statusbut same error.
shell terminal pipe input
|
show 1 more comment
up vote
1
down vote
favorite
bash-3.2$ echo "apps" | adop -status
stty: standard input: Invalid argument
Enter the APPS password: stty: standard input: Invalid argument
I tried like this also stty -ixon;echo "apps" | adop -statusbut same error.
shell terminal pipe input
What is thisadop?
– steve
Jul 7 '17 at 22:04
Do you have your tty configured? What is output oftty? What is your$TERMvalue?
– user996142
Jul 7 '17 at 22:09
@user996142bash-3.2$ tty /dev/pts/1 bash-3.2$ echo $TERM xterm
– Vijay
Jul 7 '17 at 22:10
1
@Steve adop is an Oracle EBS application script to check status.
– Vijay
Jul 7 '17 at 22:11
Looks likeadopwants standard input to be a terminal, but that is not the case because of theechopipeline. Try insteadexpector something to automate it?
– thrig
Jul 7 '17 at 22:36
|
show 1 more comment
up vote
1
down vote
favorite
up vote
1
down vote
favorite
bash-3.2$ echo "apps" | adop -status
stty: standard input: Invalid argument
Enter the APPS password: stty: standard input: Invalid argument
I tried like this also stty -ixon;echo "apps" | adop -statusbut same error.
shell terminal pipe input
bash-3.2$ echo "apps" | adop -status
stty: standard input: Invalid argument
Enter the APPS password: stty: standard input: Invalid argument
I tried like this also stty -ixon;echo "apps" | adop -statusbut same error.
shell terminal pipe input
shell terminal pipe input
edited Nov 21 at 23:09
Rui F Ribeiro
38.3k1475126
38.3k1475126
asked Jul 7 '17 at 21:55
Vijay
3728
3728
What is thisadop?
– steve
Jul 7 '17 at 22:04
Do you have your tty configured? What is output oftty? What is your$TERMvalue?
– user996142
Jul 7 '17 at 22:09
@user996142bash-3.2$ tty /dev/pts/1 bash-3.2$ echo $TERM xterm
– Vijay
Jul 7 '17 at 22:10
1
@Steve adop is an Oracle EBS application script to check status.
– Vijay
Jul 7 '17 at 22:11
Looks likeadopwants standard input to be a terminal, but that is not the case because of theechopipeline. Try insteadexpector something to automate it?
– thrig
Jul 7 '17 at 22:36
|
show 1 more comment
What is thisadop?
– steve
Jul 7 '17 at 22:04
Do you have your tty configured? What is output oftty? What is your$TERMvalue?
– user996142
Jul 7 '17 at 22:09
@user996142bash-3.2$ tty /dev/pts/1 bash-3.2$ echo $TERM xterm
– Vijay
Jul 7 '17 at 22:10
1
@Steve adop is an Oracle EBS application script to check status.
– Vijay
Jul 7 '17 at 22:11
Looks likeadopwants standard input to be a terminal, but that is not the case because of theechopipeline. Try insteadexpector something to automate it?
– thrig
Jul 7 '17 at 22:36
What is this
adop ?– steve
Jul 7 '17 at 22:04
What is this
adop ?– steve
Jul 7 '17 at 22:04
Do you have your tty configured? What is output of
tty? What is your $TERM value?– user996142
Jul 7 '17 at 22:09
Do you have your tty configured? What is output of
tty? What is your $TERM value?– user996142
Jul 7 '17 at 22:09
@user996142
bash-3.2$ tty /dev/pts/1 bash-3.2$ echo $TERM xterm– Vijay
Jul 7 '17 at 22:10
@user996142
bash-3.2$ tty /dev/pts/1 bash-3.2$ echo $TERM xterm– Vijay
Jul 7 '17 at 22:10
1
1
@Steve adop is an Oracle EBS application script to check status.
– Vijay
Jul 7 '17 at 22:11
@Steve adop is an Oracle EBS application script to check status.
– Vijay
Jul 7 '17 at 22:11
Looks like
adop wants standard input to be a terminal, but that is not the case because of the echo pipeline. Try instead expect or something to automate it?– thrig
Jul 7 '17 at 22:36
Looks like
adop wants standard input to be a terminal, but that is not the case because of the echo pipeline. Try instead expect or something to automate it?– thrig
Jul 7 '17 at 22:36
|
show 1 more comment
2 Answers
2
active
oldest
votes
up vote
2
down vote
With expect you can fake a terminal to adop and then feed it input via the spawn procedure:
#!/usr/bin/env expect
spawn -noecho adop -status
send "apps"
expect -ex "Enter the APPS password"
send "thepassword"
add a comment |
up vote
0
down vote
Thankyou all, I am using echo "apps" | adop -status 2>/dev/null, its working fine.
add a comment |
2 Answers
2
active
oldest
votes
2 Answers
2
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
2
down vote
With expect you can fake a terminal to adop and then feed it input via the spawn procedure:
#!/usr/bin/env expect
spawn -noecho adop -status
send "apps"
expect -ex "Enter the APPS password"
send "thepassword"
add a comment |
up vote
2
down vote
With expect you can fake a terminal to adop and then feed it input via the spawn procedure:
#!/usr/bin/env expect
spawn -noecho adop -status
send "apps"
expect -ex "Enter the APPS password"
send "thepassword"
add a comment |
up vote
2
down vote
up vote
2
down vote
With expect you can fake a terminal to adop and then feed it input via the spawn procedure:
#!/usr/bin/env expect
spawn -noecho adop -status
send "apps"
expect -ex "Enter the APPS password"
send "thepassword"
With expect you can fake a terminal to adop and then feed it input via the spawn procedure:
#!/usr/bin/env expect
spawn -noecho adop -status
send "apps"
expect -ex "Enter the APPS password"
send "thepassword"
edited Jul 7 '17 at 23:43
Gilles
522k12610401575
522k12610401575
answered Jul 7 '17 at 23:02
thrig
23.7k12955
23.7k12955
add a comment |
add a comment |
up vote
0
down vote
Thankyou all, I am using echo "apps" | adop -status 2>/dev/null, its working fine.
add a comment |
up vote
0
down vote
Thankyou all, I am using echo "apps" | adop -status 2>/dev/null, its working fine.
add a comment |
up vote
0
down vote
up vote
0
down vote
Thankyou all, I am using echo "apps" | adop -status 2>/dev/null, its working fine.
Thankyou all, I am using echo "apps" | adop -status 2>/dev/null, its working fine.
answered Jul 8 '17 at 1:00
Vijay
3728
3728
add a comment |
add a comment |
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f376090%2fpipe-to-adop-stty-standard-input-inappropriate-ioctl-for-device%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
What is this
adop?– steve
Jul 7 '17 at 22:04
Do you have your tty configured? What is output of
tty? What is your$TERMvalue?– user996142
Jul 7 '17 at 22:09
@user996142
bash-3.2$ tty /dev/pts/1 bash-3.2$ echo $TERM xterm– Vijay
Jul 7 '17 at 22:10
1
@Steve adop is an Oracle EBS application script to check status.
– Vijay
Jul 7 '17 at 22:11
Looks like
adopwants standard input to be a terminal, but that is not the case because of theechopipeline. Try insteadexpector something to automate it?– thrig
Jul 7 '17 at 22:36