I want to login using ssh and password store in a text file or may be in a varible  I am trying below method but i am getting an error please suggest me correct way.  echo "123456" | ssh root@127.0.0.1  error: Pseudo-terminal will not be allocated because stdin is not a terminal.
I tried writing a shell script which can do automatic login into a ssh server using password which is mentioned in the script. I have written the following code:  set timeout 30 /usr/bin/ssh -p 8484 root@172.31.72.103 expect  {    "root@172.31.72.103's password"     {       send "password\r"     } }   This code is not running properly, still it is asking for the password. Can somebody please help me in solving this
Why is the PHP version different in phpinfo() and CLI? I realized that there is a miss matching between the PHP version reported by phpinfo() and php -v (in the CLI).  phpinfo():  5.5.24 php -v: 5.6.9   I am working on a Mac OS X 10.10 (Yosemite) and installed a library (php-version) to try to manage the PHP versions.  It reports me 3 different versions installed on my laptop:    5.4.41   5.5.25 * 5.6.9   I would like to set the same version of PHP in both Apache and CLI.  How can I tell Apache which PHP version use?  I tried to write this line in my httpd.conf:  LoadModule php5_module    /usr/local/opt/php56/libexec/apache2/libphp5.so   Then:  sudo apachectl restart   But all this not solve the problem… In my PHP info I still have: 5.5.24 I have studied that  and motional emf are two different lines of thinking but are essentially same. But then, how can Faraday's paradox be explained by Faraday's law of induction? Particularly in paradoxes in which Faraday's law of induction predicts zero EMF but there is a non-zero . The wikipedia article is more confusing rather than enlightening.  I need an explanation regarding  EDIT : I wanted to know how is flux changing if faraday's law is valid . How to replace text in the body of an incoming message with a hyperlink in Outlook 2010? A term for when people insist on giving you help you didn't ask for? People love to tell other people what to do. It may not be control, so much as trying to help, especially when you've asked for help directly. However, there's a difference between answering someone's question and answering while piling on recommendations the person didn't ask about, and this is what I'm seeking a term for. Advertising and marketing feel similar to me in this vein. In the worst cases this can be overzealous religious followers professing your damnation if you don't follow with them (I think in Christianity they call it "witnessing"). Any which way, it comes across to me as a form of unsolicited advice: I didn't ask for it, so I don't want it; I want to stay focused.  Is there a better term for this than "unsolicited advice"? Also, is there a term for a person who exhibits this kind of behavior frequently? Multiple logistic regression power analysis Review audit ignores closereason filter How can a company use money from stock investors when they are constantly being bought and sold? How can I override the OnBeforeUnload dialog and replace it with my own? I need to warn users about unsaved changes before they leave a page (a pretty common problem). window.onbeforeunload = handler  This works but it raises a default dialog with an irritating standard message that wraps my own text. I need to either completely replace the standard message, so my text is clear, or (even better) replace the entire dialog with a modal dialog using jQuery. So far I have failed and I haven't found anyone else who seems to have an answer. Is it even possible? Javascript in my page: &lt;script type=&quot;text/javascript&quot;&gt;        window.onbeforeunload = closeIt; &lt;/script&gt;  The closeIt() function: function closeIt() {   if (changes == &quot;true&quot; || files == &quot;true&quot;)   {       return &quot;Here you can append a custom message to the default dialog.&quot;;   } }  Using jQuery and jqModal I have tried this kind of thing (using a custom confirm dialog): $(window).beforeunload(function () {     confirm('new message: ' + this.href + ' !', this.href);     return false; });  which also doesn't work - I cannot seem to bind to the beforeunload event. Single-word synonym for "immensely valuable"? I am looking for some (may be rarely know to nonnative English speakers) synonyms for  "immensely valuable" or "extremely valuable". Integral of the square of the normal distribution. I have a laptop with a full keyboard (it has numpad), but the laptop is not that big, and because of that the keys are relatively small, which means I am constantly finding myself pressing keys accidentally on the numpad part.  Is there a way to disable specific keys that I simply don't want? Does Blender support dual-GPU rendering if the two GPUs aren't the same? I have a GTX 1060 6GB in my current build, and I also have a GTX 960 2GB in storage. I was wondering if I got , and got both of my GPUs in one build (not SLI or CrossFire, just in the same system) would I be able to use both GPUs for rendering simultaneously? I don't care if this means having them both render separate tiles in one instance of Blender, or rendering separate frames in two instances. I'm using Cycles for everything I do. Why is pruning not needed for random forest trees? Breiman says that the trees are grown with out pruning. Why? I mean to say that there must be a solid reason why the trees in random forest are not pruned. On the other hand it is considered very important to prune a single decision tree to avoid over fitting. Is there some literature available to read for this reason? Of course the trees may not be correlated but there still will be a possibility of over fitting. If $g\circ f$ is injective and $f$ is surjective then $g$ is injective PythonTEX not working on current Overleaf compiler Is there a way to make PythonTEX compile as of today in Overleaf V2 ?  \documentclass[]{article} \usepackage[utf8]{inputenc} \usepackage{pythontex}  \begin{document} \begin{pyverbatim} def calc_ellipticity(theta, delta):     theta = np.deg2rad(theta)     psi = np.arcsin(np.sin(2*theta) * np.sin(delta))/2     return np.tan(psi) \end{pyverbatim} \end{document}   Compiling gives : ? PythonTEX ? What is the best practice to make division return double in C# In c# when you want to divide the result of a method such as below, what is the best way to force it to return a double value rather than the default integer.   (int)Math.Ceiling((double)(System.DateTime.DaysInMonth(2009, 1) / 7));   As you can see I need the division to return a double so I can use the ceiling function. "Whom" or "who" where the referent is both subject and object? I understand there has been so much on this topic but I am still confused. I get that if the person is the subject it is who and anything else is whom. However, I'm really struggling to work out this rule for the following sentence:     The scope of which his account of morality applies to is therefore restricted to those whom/who the ‘notion of justification to a being of that kind makes sense.’   Should it be who or whom? I can't work out the subject and object. Installing PHP 5.6 on Xenial (16.04) I need to use php5 (5.6) because I'm working on a Drupal 7 project which doesn't support php7. The problem is I recently updated to ubuntu 16.04 Xenial which seems to .   I tried to install it from , however when It try to install it with apt I always get similar errors.  $ sudo apt-get install php5-cli Cependant les paquets suivants le remplacent :   php7.0-cli:i386 php7.0-cli`   Which means it's obsolete. How can I install PHP 5.6 on Xenial? How to style text in hyperref \url? I've bought a  to use with my EOS 200D and while I love the wide aperture, it appears to be quite difficult to achieve sharp focus on people's faces when shooting at f/1.8. I've tried both using Dual Pixel focus in Live View and using the center focusing point in the viewfinder, but it doesn't get me perfect results.  Is this simply a characteristic of cheap wide-aperture lenses? Or is it impossible to get sharp focus with a fully open aperture?  When I'm at at home using a tripod and focusing on a still subject I do get good focus (so it's not a camera or lens issue). But it's hard to do with people who are slightly moving between shots.