User Tools

Site Tools


notes:cprog

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
notes:cprog [2018/11/15 22:14] – [Notes] sdiarranotes:cprog [2018/11/20 08:24] (current) – [Other] sdiarra
Line 95: Line 95:
 <color #ed1c24>**Quick Tip:** </color> <color #ed1c24>**Quick Tip:** </color>
  
-Recently I have discovered a trick that could help run scripts much quicker with direct access to one's lab46 account, without working only on a single a single. Ultimately, I had to ssh into my account, and whenever I left the terminal open for a few minutes, it would go offline - or had share scripts between my personal laptop and lab46 machines, and work on projects on one machine at a time(fairly painful). With this method one can easily call commands anywhere, that are otherwise only available on the lab46 account. Here is how it is accomplished: +Recently I have discovered a trick that could help run scripts much quicker with direct access to one's lab46 account, without working only on a single machine at time. Ultimately, I had to ssh into my account, and whenever I left the terminal open for a few minutes, it would go offline - or had to share scripts between my personal laptop and lab46 machines, and work on projects on one machine at a time(fairly painful). With this method one can easily call commands anywhere, that are otherwise only available on the lab46 account. Here is how it is accomplished: 
 <code> <code>
     system("ssh account@lab47.corning-cc.edu command_here");     system("ssh account@lab47.corning-cc.edu command_here");
notes/cprog.1542338081.txt.gz · Last modified: 2018/11/15 22:14 by sdiarra