utahcon Posted March 7, 2008 Share Posted March 7, 2008 I am working on some scripting stuff and I was wondering what I can do to interact with the shell in a continuous manner. For example is there a way to complete passwd? Link to comment https://forums.phpfreaks.com/topic/94956-complex-interaction-with-shell/ Share on other sites More sharing options...
Daniel0 Posted March 8, 2008 Share Posted March 8, 2008 For passwd, try this: echo [new_password] | passwd [username] --stdin Other commands probably have ways of reading the things directly from stdin (standard input) as well. Link to comment https://forums.phpfreaks.com/topic/94956-complex-interaction-with-shell/#findComment-487139 Share on other sites More sharing options...
utahcon Posted March 11, 2008 Author Share Posted March 11, 2008 I tried that, and I only get back errors that --stdin is not valid. Link to comment https://forums.phpfreaks.com/topic/94956-complex-interaction-with-shell/#findComment-489647 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.