timeout + root password + strace in one line
Clash Royale CLAN TAG#URR8PPP
up vote
0
down vote
favorite
I'm trying to run a timeout command, with root password and strace all in one line, the original cmmand is
sudo -S timeout 4 strace -p 2829 -f -e trace=write -s 9999
but that promps for entering the root password. which I already have and wants to put it in one line, so this becomes
echo ROOT_PASSWORD | sudo -S strace -p 2829 -f -e trace=write -s 9999
I tried putting timeout in the front, middle or at the end but it doesn't work, such as
timeout 4 | echo ROOT_PASSWORD | sudo -S strace -p 2829 -f -e trace=write -s 9999
thank you for your help! =)
command-line root strace
add a comment |Â
up vote
0
down vote
favorite
I'm trying to run a timeout command, with root password and strace all in one line, the original cmmand is
sudo -S timeout 4 strace -p 2829 -f -e trace=write -s 9999
but that promps for entering the root password. which I already have and wants to put it in one line, so this becomes
echo ROOT_PASSWORD | sudo -S strace -p 2829 -f -e trace=write -s 9999
I tried putting timeout in the front, middle or at the end but it doesn't work, such as
timeout 4 | echo ROOT_PASSWORD | sudo -S strace -p 2829 -f -e trace=write -s 9999
thank you for your help! =)
command-line root strace
Why not just configure sudo to allow password less execution?
â Raman Sailopal
Jan 5 at 11:22
add a comment |Â
up vote
0
down vote
favorite
up vote
0
down vote
favorite
I'm trying to run a timeout command, with root password and strace all in one line, the original cmmand is
sudo -S timeout 4 strace -p 2829 -f -e trace=write -s 9999
but that promps for entering the root password. which I already have and wants to put it in one line, so this becomes
echo ROOT_PASSWORD | sudo -S strace -p 2829 -f -e trace=write -s 9999
I tried putting timeout in the front, middle or at the end but it doesn't work, such as
timeout 4 | echo ROOT_PASSWORD | sudo -S strace -p 2829 -f -e trace=write -s 9999
thank you for your help! =)
command-line root strace
I'm trying to run a timeout command, with root password and strace all in one line, the original cmmand is
sudo -S timeout 4 strace -p 2829 -f -e trace=write -s 9999
but that promps for entering the root password. which I already have and wants to put it in one line, so this becomes
echo ROOT_PASSWORD | sudo -S strace -p 2829 -f -e trace=write -s 9999
I tried putting timeout in the front, middle or at the end but it doesn't work, such as
timeout 4 | echo ROOT_PASSWORD | sudo -S strace -p 2829 -f -e trace=write -s 9999
thank you for your help! =)
command-line root strace
asked Jan 5 at 7:49
Jim
1176
1176
Why not just configure sudo to allow password less execution?
â Raman Sailopal
Jan 5 at 11:22
add a comment |Â
Why not just configure sudo to allow password less execution?
â Raman Sailopal
Jan 5 at 11:22
Why not just configure sudo to allow password less execution?
â Raman Sailopal
Jan 5 at 11:22
Why not just configure sudo to allow password less execution?
â Raman Sailopal
Jan 5 at 11:22
add a comment |Â
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
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
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f414937%2ftimeout-root-password-strace-in-one-line%23new-answer', 'question_page');
);
Post as a guest
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
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
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
Why not just configure sudo to allow password less execution?
â Raman Sailopal
Jan 5 at 11:22