Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

16
  • @tbp_09 can you please accept ans as correct :) Commented Sep 25, 2013 at 14:47
  • Any idea how can I do the same thing for su command. Assume I have a root password and i want to change to root mode without giving any prompt so that i can run/invoke scripts from remote server using java or .net Commented Oct 1, 2013 at 13:54
  • have take look at expect tool nist.gov/el/msid/expect.cfm Commented Oct 1, 2013 at 14:06
  • also check some su trick in this link vladz.devzero.fr/002_su-stdin.php Commented Oct 1, 2013 at 14:21
  • Thanks for suggesting vladz.devzero.fr/002_su-stdin.php I can try something like that. Commented Oct 3, 2013 at 13:53