Archive: shell

 

Posts Tagged ‘shell’


Found this great article on writing bash scripts defensively. Glad to say most of the advice we are already following with our bash scripts however there are a couple of new things I intend to roll in on Monday. Recommended reading for anyone scripting in Bash. http://www.davidpashley.com/articles/writing-robust-shell-scripts.html More Reading:Server Migration – Pipe Tar from Server [...]



 

If you need to transfer a large amount of data from one server to another you might normally create a large tar archive, send it across and then untar it on the other end. However a slightly slicker and easier repeated way of doing this is to pipe tar directly from one server to the [...]



 

Running PHP on the command line, via cron etc there are a few common problems you can hit and from experience this my recommendations to avoid them. It seems that (on CentOS at least) PHP does not display errors by default on the command line. You will want it to I assume so you can [...]



 

The bash shell is awesome and scripting using a combination of PHP and Bash is a favourite technique of mine. I want to be able to do it all in Netbeans but if you have the PHP flavour of Netbeans then its missing shell scripting support as standard. To get it to work easily, simply [...]



 

If you ever want to have a quick look at a html file from the command line (eg when SSHing into a server) then you will love this little app. Called w3m, its a basic text based browser that will render your html into readable formatted text right on the command line. This is great [...]



 

Check out this blog post by NuBlue, 16 Really Useful Shell Commands.. A good intro to some of the most commonly used shell commands with nice explanations, well done guys More Reading:Writing Robust Bash Shell ScriptsServer Migration – Pipe Tar from Server to Server using NetcatPHP CLICommand Line FuNetbeans Disable Transparent Undocked WindowsStart windows on [...]



 

Just discovered this site - some handy little command line snippets there http://www.commandlinefu.com/commands/browse/sort-by-votes for example some SCP goodness. Definitely one I will be using again More Reading:Writing Robust Bash Shell ScriptsPath Tools Netbeans Open File in external program plus guake codeForce a Bash Script to run in ScreenServer Migration – Synch Cron Tab via SSHSecure [...]