For my IDL and MATLAB scripts, calling scp is as easy as using each language's system call, with command strings built up through normal concatination.
IDL:
In IDL it's the "spawn" command. Here are some nice tutorials with examples:
http://archive.stsci.edu/iue/manual/dacguide/node8.html
http://www.astro.virginia.edu/class/oconnell/astr511/idl_5.1_html/idl1a9.htm
http://idlastro.gsfc.nasa.gov/idl_html_help/SPAWN.html
MATLAB:
This shows a very fancy script, but it's just a wrapper for the system call that allows specification of an array of scenarios for the scp command. The take-away for me was to be sure to use the full path for the scp executable.
http://www.mathworks.com/matlabcentral/fileexchange/25256-scpsftp-from-matlab/content/ssh/scpfrommatlab.m
Thursday, March 22, 2012
MATLAB concatinate strings trailing space
Concatinating strings is easy with result = strcat(s1,s2,...sN) except that strcat trims trailing space from each string, ruining attempts at formatting. The solution is to think in terms of MATLAB's array addition. In this case, you simply declare result = [s1 s2 ... SN].
http://www.mathworks.com/help/techdoc/ref/strcat.html
http://www.mathworks.com/help/techdoc/ref/strcat.html
scp without password
Third or so post on this topic; I'm starting to get the hang of it these days. The routine is use ssh-keygen -t rsa, generate keys, scp the public key to the remote host's .ssh/authorized_keys file.
http://snippets.dzone.com/posts/show/2700
http://rcsg-gsir.imsb-dsgi.nrc-cnrc.gc.ca/documents/internet/node31.html
http://www.unix.com/unix-advanced-expert-users/106524-scp-without-password.html
http://mindspill.net/computing/linux-notes/ssh-or-scp-without-password/
http://snippets.dzone.com/posts/show/2700
http://rcsg-gsir.imsb-dsgi.nrc-cnrc.gc.ca/documents/internet/node31.html
http://www.unix.com/unix-advanced-expert-users/106524-scp-without-password.html
http://mindspill.net/computing/linux-notes/ssh-or-scp-without-password/
Friday, March 16, 2012
Proud Synonym
While hunting around for something else, I ran across this synonym discussion thread in which it is pointed out that most of the synonyms for Proud have negative connotations. Interesting.
http://forum.wordreference.com/showthread.php?t=961864
I think that I used "gratified" or something like that.
http://forum.wordreference.com/showthread.php?t=961864
I think that I used "gratified" or something like that.
Microsoft Word 2007 How to "unlock" documents marked as final
Marked as final documents come up with an "Edit anyway" button in Word 2010 but we just couldn't figure out how to do the same thing in Word 2007. Yay, there is a way, it's just buried way, way down in that damned 2007 "Microsoft Office Button" menu. Go to the M$Office button menu, find the choice for "Prepare", and click on "Mark As Final" to toggle it off.
Here's the link for how to do it in M$Word 2007:
http://office.microsoft.com/en-us/word-help/prevent-changes-to-a-final-version-of-a-document-HA010132569.aspx
Here's some links on how to find the option in M$Word 2010 (completely differently):
http://office.microsoft.com/en-us/word-help/prevent-changes-to-a-final-version-of-a-document-HA010132569.aspx
http://grok.lsu.edu/article.aspx?articleid=14353
Here's the link for how to do it in M$Word 2007:
http://office.microsoft.com/en-us/word-help/prevent-changes-to-a-final-version-of-a-document-HA010132569.aspx
Here's some links on how to find the option in M$Word 2010 (completely differently):
http://office.microsoft.com/en-us/word-help/prevent-changes-to-a-final-version-of-a-document-HA010132569.aspx
http://grok.lsu.edu/article.aspx?articleid=14353
Subscribe to:
Posts (Atom)