Running scripts from linux to modify image files on a windows 2000 box

Roger Oberholtzer roger
Mon May 17 11:49:15 PDT 2004


On Sat, 2003-07-12 at 16:04, Joel Hammer wrote:
> What software are you referring to?
> 
> I did download cygwin from somewhere. It gave me a unix like environment
> in windows but the root directory it supplied would not let me access
> the other directories on the windows box.

It was cygwin I referred to. I have had no trouble accessing any
directories at all, including those from SAMBA or other Windows boxes.
It is just that the base part of the path is different. But, if you
check the environment at the start of the script, you can determine if
it is windows or unix and set the base to the appropriate thing. Still
one script that runs on both environments. In fact, I have found very
little I could not do this way. I really detested the need to make it
work in command.exe.

Another cross platform script language is Tcl/Tk. This has the added
advantage of letting you add a platform independent GUI. There are nice
tools for working with images, like the Img extension. For our 'real'
scripts, this is what we use. There is even a netscape/explorer plugin
so you can embed the script in a web page and let it execute in a
browser. I have not used this, but I can see the use of such a thing.


> 
> Joel
> 
> On Sat, Jul 12, 2003 at 12:05:38PM +0200, Roger Oberholtzer wrote:
> > Make life simple. Go to the Gnu site and download the stuff for Windows.
> > There is a small exe that you install, and it manages installing the
> > rest. You will get a nice shell and many Unix commands into the bargain.
> > Then, your scripting environment will be the same. Run the same scripts
> > on Linux and Windows. I do this and am happy with the setup. If you are
> > using ImageMagik, you can install the winders version and be complete.
> > 
> > On Sat, 2003-07-12 at 04:23, Joel Hammer wrote:
> > > At work, I am going to have a digital camera tethered to a linux box
> > > via usb.  This linux box will connect directly via an ethernet connection
> > > to a windows 2000 box in another room, which will be the major player in
> > > image processing and storage. I could change this I suppose, and have the
> > > linux box tethered to the camera as the major player, but I am worried
> > > about the slow down due to the cable connection.
> > > 
> > > I am going to need to run a number of repetitive image editing commands
> > > via scripts on the captured images, after they are sent to the windows
> > > 2000 box. For example, they need to be labelled, commented, turned upside
> > > down (Our camera is mounted upside down.), and resized, at least. I
> > > could do all this before they are sent, but the W2K computer is going to
> > > be capturing images, too, and they will need to be edited in a similar
> > > fashion.
> > > 
> > > I will be using image magick's collection of command line programs to
> > > accomplish this. There are versions of image magick for W2K as well as
> > > for linux.
> > > 
> > > Now, since I know nothing of scripting in W2K but a lot about scripting in
> > > linux, would it be possible to mount the appropriate W2K directories
> > > on the linux box, and run the editing commands in linux, even though
> > > the files are stored on the W2K box? It sounds quite reasonable, but,
> > > I have never tried this, I don't use windows, and would like to know if
> > > this would in fact be workable.
> > > 
> > > Thanks,
> > > 
> > > Joel
> > > 
> > > _______________________________________________
> > > Linux-users mailing list
> > > Linux-users at linux-sxs.org
> > > Unsubscribe/Suspend/Etc -> http://www.linux-sxs.org/mailman/listinfo/linux-users
> > > 
> > 
> > _______________________________________________
> > Linux-users mailing list
> > Linux-users at linux-sxs.org
> > Unsubscribe/Suspend/Etc -> http://www.linux-sxs.org/mailman/listinfo/linux-users
> _______________________________________________
> Linux-users mailing list
> Linux-users at linux-sxs.org
> Unsubscribe/Suspend/Etc -> http://www.linux-sxs.org/mailman/listinfo/linux-users
> 



More information about the Linux-users mailing list