Tag Archives: scripting

command line fun – finding the right jar file

Where did I set down my mobile phone is quickly answered by a quick telephone call or a sms from another phone.  If everything were only that simple. I receive a bit of code from a buddy at work that … Continue reading

Posted in Command line, programming | Tagged , | Comments Off on command line fun – finding the right jar file

windows scripting

I was asked the other day if I could take over a task that was running on windows machine. The sentence was hardly out of my boss’s mouth when he said that “you unix guys don’t like windows though”. Well, … Continue reading

Posted in Command line, programming | Tagged , | Comments Off on windows scripting

When all you have is a hammer …

I was speaking with a friend the other day and he was telling about this crazy thing that was being done in his department.  There was a task that needed to be done usually once a day and it was … Continue reading

Posted in Command line, programming | Tagged , | Comments Off on When all you have is a hammer …

command line fun – spaces and arguments

I normally get to control most aspects of the program.  The most important yet trivial is the parameters that are being passed to the program.  Because I know what I want it is usually possible to coerce the calling script … Continue reading

Posted in Command line | Tagged , | Comments Off on command line fun – spaces and arguments

command line fun – getting to the base of things

Just a short time back I received a mail from a colleague with an error message.  The question from him was about the error and more importantly was this my program.  I did find some code that generated the same … Continue reading

Posted in Command line, programming | Tagged , | Comments Off on command line fun – getting to the base of things

command line fun – listing and sorting

Linux is not Unix yet it is very similar.  They are so similar I never really notice the difference, even when writing scripts.  I needed to get a list of sorted files, so I tried the usual commands. ls -lS … Continue reading

Posted in Command line | Tagged , | Comments Off on command line fun – listing and sorting

command line fun – more fun with sftp

A few days back we needed to copy some files around in the production environment and the task was given to me.  It was one of those rather simple tasks as in the email was some examples from a colleague … Continue reading

Posted in Command line | Tagged , , | Comments Off on command line fun – more fun with sftp

command line fun – testing for existence

I remember quite some time ago when I was developing a an application when the personal computer was actually fairly slow.  Of course I happened to pick a technology that worked just fine on a newer computer but it actually … Continue reading

Posted in Command line, programming | Tagged , | Comments Off on command line fun – testing for existence

command line fun – transferring data with sftp

I must admit that I misunderstood the task when I first saw it.  The vendor had changed how they provide the data.  We will no longer be able to retrieve the data using ftp – the data should be picked … Continue reading

Posted in Command line, programming | Tagged , , | Comments Off on command line fun – transferring data with sftp

command line fun – juliane day number to gregorian

In a previous blog, I implemented a routine to convert a Gregorian date into a Juliane day number to allow simple math and comparisons on dates. This was pretty cool but it is less useful if you cannot convert back … Continue reading

Posted in Command line, programming | Tagged , | Comments Off on command line fun – juliane day number to gregorian