How to run script residing on the client on a remote host and get results back to the client in one go.
I would like to run  something &gt; file   on a remote system through ssh, but if I run  ssh host something &gt; file   the redirection is executed locally as ssh etc &gt; file  I've tried it with ' or '' or dd or with a pipe | instead, but I can't get it to work. How can this be done?
Suppose $G$ is a group and has exactly two nontrivial proper subgroups. Prove that $G$ is cyclic and $|G|=pq$ where p,q are distinct primes or $G$ is cyclic and $|G|=p^3$ where $p$ is a prime. Usually my tactic to show a group is cyclic is find an elements such that its order and order of the group are the same. But here I cannot do so because I have no informatio regarding order of elements. So I stuck. Can anyone help me? How do I get started playing Dungeons and Dragons 4th edition by myself? I've been wanting to start playing D&amp;D for some time, and I was wondering how I could get started by myself with relative ease. I own the first two player handbooks, and a set of dice. How can I query SEDE for tags I've created? How can I query the  for tags I've created? How do we know for certain that space is expanding? How do we know for certain that space is expanding?  Let's say that in the year 1950, we observe that galaxy 1 is 5 billion light years away from us and galaxy 2 is 10 billion light years away from us, putting both galaxies at a distance of 5 billion light years from each other. Then in 2013, we observe that they are now 7 billion light years away from each other so we conclude space is expanding.  We see that galaxies are move away from each other but how does that prove that space is expanding? Could this illusion of expanding space simply be due to something larger in mass pulling the farther galaxy 2 away from galaxy 1? This larger mass could be accelerating the velocity of galaxy 2 faster then it's accelerating the velocity of galaxy 1. scp from remote Linux to local Windows with spaces in local path To push a file from a Linux terminal to a Windows system, the following two examples work just fine.  scp /home/user.name/file.html user.name@local.ip.num:/C:/Users/user.name/test_folder/file.html  scp /home/user.name/file.html user.name@local.ip.num:"/C:/Users/user.name/test_folder/file.html"   I need to do this where the local folder has spaces and I cannot change the name,  say /C:/Users/user.name/test folder/  All of the following fail with the message scp: ambiguous target  scp /home/user.name/file.html user.name@local.ip.num:"/C:/Users/user.name/test folder/file.html"  scp /home/user.name/file.html user.name@local.ip.num:"/C:/Users/user.name/test\ folder/file.html"  scp /home/user.name/file.html user.name@local.ip.num:"'/C:/Users/user.name/test\ folder/file.html'"  scp /home/user.name/file.html user.name@local.ip.num:"/C:/Users/user.name/test\\ folder/file.html"  scp /home/user.name/file.html user.name@local.ip.num:"'/C:/Users/user.name/test\\ folder/file.html'"  scp /home/user.name/file.html user.name@local.ip.num:"/C:/Users/user.name/test\\\ folder/file.html"  scp /home/user.name/file.html user.name@local.ip.num:"'/C:/Users/user.name/test\\\ folder/file.html'"   How do I get this to work? Is the gradient a surface normal vector or does it point in the direction of maximum increase of f I'm having some trouble trying to visualize and physically understand what's happening with the gradient.  I understand that the following is true:   The gradient of f (grad(f)) points in the direction of maximum increase of f   However, later on, we are told that a gradient of a surface f (grad(f)) gives us the surface normal vector (i.e pointing away). How can that be? From the first statement, I thought that the gradient must be pointing in the direction of maximum increase of f - surely the direction of maximum increase of f should be a vector pointing in some direction on f itself. How can it be pointing outward as a surface normal vector? How to automatically archive a directory? I want to do one way synchronization.  I am having Folder A on my computer which is constantly updated with content. Another Folder B is used for backup purpose which is on external HDD.  Now what I expect is that whatever extra which is present in folder A should go to folder B. However something which is present in B and NOT in A ""shall NOT be copied to A"".  In a nutshell, the backup folder may copy everything from the source folder, however nothing should be copied form backup folder to the source. Does infinity exist in physical systems? Sometimes people fail at asking a question by being too broad, unclear like . So I'll take a stab at what I believe to be the same question, but more concise and clearly stated:     Does infinity exist in either terms of structure, parameters, or   measurement in any physical systems?   Can infinity have any real connection with reality?  Or is infinity purely a mathematical concept just used by physicists as a convenient way to describe the very large, an approximation?  I have heard that if you model a physical system (), and you run into infinity as a solution, then you have either made an error in your calculations or your model is wrong. Find $F$-related vector fields on $M\times N$, where $F(x)=(x, f(x))$ I am reading Lee's book on Differential geometry. In Chapter 4, Lee has this exercise.  Let $M$, $N$ be smooth manifolds, and let $f:M\to N$ be a smooth map. Define $F : M\to M \times N$ by $F(x) = (x, f(x) )$. Show that for every smooth vector field $V$ of $M$ , there is a smooth vector field on $W$ on $M \times N$ that is $F$-related to $V$.  I can understand that we must have $W_{(x,f(x))}=V_x\oplus Df(x)V_p$ for all $x\in M.$ The set $\{(x,f(x)):x\in M\}$ is a closed set in $M\times N.$ Therefore, if we can show that for all $(p,f(p))\in M\times N$ there is a neighbourhood $U_p$ and a smooth vector field on $U_p$ extending $V_x\oplus Df(x)V_x$ we are done by partition of unity. But I cannot show that. Can someone help me out? Orphaned tag wiki edits have broken activity entries Keyboard key stuck or not being recognized; how to fix This is an attempt to write a canonical QA for this issue, as per the Meta post:   I expect it to be periodically edited with the goal of becoming a comprehensive information resource.  I have a MacBook Pro that has a key(Shift, Return,   Command, P, etc.) that doesn’t respond when pressed or is stuck in the down position.    It's possible that my favorite beverage was spilled (or some other liquid damage).  It's also possible that I have no idea what happened.  It was working yesterday and suddenly today it's no longer working.  Is there any way to bypass or remap the key?  Can I  have the system ignore it completely?  (This question can also apply to external USB keyboards or the Bluetooth keyboards) Radius of Convergence of power series of Complex Analysis I have come across the following few questions on past exams papers.. I know how to solve these type when it is of the form $a_nz^n$ but don't have a clue what to do with these. Any help would be greatly appreciated!  (i) $\displaystyle\sum_{n=0}^\infty \bigg(\dfrac{1}{2n}\bigg)z^{3n}$.  (ii) $\displaystyle\sum_{n=0}^\infty(2^n+i)(z-i)^n$.  (iii) Show that the radius of convergence of $\displaystyle\sum_{n=0}^\infty z^{n!}$ is $1$ and that there are infinitely many $z \in \mathbb{C}$ with $|z|=1$ for which the series diverges. Setting post meta data to random value during post status transition / on publish How to enable virtualization on booting? (Ubuntu 13.10) \dots versus \ldots - is there a difference? Is there a difference between \dots and \ldots, the ellipsis?  If yes: Which? When to use \dots and when to use \ldots?  If no: Why are there both at all? How can I safely prototype a mains power circuit? I'm building a device that has a mains power component, which I need to prototype before building to make sure everything works. I know I need to make sure wiring—and insulation!—is thick enough to cope with the higher current, and that I need to make sure there's enough space between exposed components so there's no arcing. I'll also be stashing whatever I prototype in a nice, insulated box before applying power, and I'll be include a small-value (250mA) fuse just in case. I'll be considering everything double-insulated rather than earthed (plastic enclosure, and there's nothing I'll need to touch while it's operating).  My plan is to solder (through-hole) components directly to each other, then insulate everything (with heatshrink tubing or electrical tape) as much as possible, then use screw-type cable joiners to connect the power cable.  I know I can't use traditional prototyping tools such as breadboards and stripboard for mains voltages, but what can I use to make prototyping at mains voltages easier?  (To be clear, 'mains voltage' in my area means 230V AC +10/-6% at 50Hz; GPOs are generally rated at 10A.) How can I set cron to run certain commands every one and a half hours? what is wrong with this??? please,can anyone help?  \begin{equation} \label{probabilityy} P^{t}({E_{0})=P_{0}+(1-P_{0})P_{1}+ (1-P_{0})(1-P_{1})P_{2}+.......+P_{n}\Pi_{k_{0}}^{n-1}(1-P_{k}) \end{equation} I have a 230 Gigs HDD on my laptop, i have 50 gigs extended for my linux, i have 80 gigs empty ntfs partition, and 100 gigs ntfs partition where i store all my important data, (i have about 50 gigs of important things) today i mounted the 100 gigs partition took something from it, unmounted it back, and then when i mounted it again it was EMPTY !!! all the data is gone !!!! i used to mount it via the terminal : sudo mount ntfs /dev/sda5 /media/E where E is a dir that i make (when i make it i change the permissions of media to 777 then after creating the dir, i change it back to normal)  Guys you cant imagine how much this data is important to me, Plz HelP,  thnx in advance Why does Stack Exchange ask for a reload on successful automatic login? I'm looking for an answer considering both technical limitations and user experience.   Does it need a reload from a technical standpoint?