WAY OT - A bit stuck!!! (Linux)

I know it would be pretty difficult to get more off topic but..

I'm porting my home grown C apps from ROS to Linux but I've got a bit stuck with issuing command lines from within the program.

It's probably a terminology thing, (I'm aware that Unix treats files in a "virtual" sort of way, and the caommand line is sh or variations thereof) but seraching the web has found no references at all!

Under ROS I'd use :

if(_kernel_oscli(command_line) == -2)

to pretend to use the comand line (to get files copied from a to b in this case to put the site together), but there doesn't appear to be an equivelent in either the C Library or GTK.

I've asked on a C forum but got shouted at for it not being "proper" (i.e. ANSI) C, which was very helpful.

Any ideas or pointers to a friendly appropriate group?

Cheers Richard

Reply to
beamendsltd
Loading thread data ...

My C is a bit rusty, but is it not something like this that you are after (unless i misunderstand your aims)

system("cp a.file b.file");

Ive got a big fat book on C/C++ somewhere from when i was tought it at uni. I was using it as a doorstop the other week but i cant find it now!

Reply to
Tom Woods

Well done that man! 10 Jolly Junior points and a gold star.

Cheers Richard

Reply to
beamendsltd

Hi Richard:

I know of only one Linux "GOD" (compiled his own unique version) and he has been a Linux advocate for as long as I have known him.

Try gently introducing your enquiry (with appropriate grovelling :-)) to: snipped-for-privacy@witness.com

Dave Williams is the most erudite programmer I have ever met (across so many languages he is a marvel to behold).

If you want to get on his right side just mention Noble cars (he has an M12) and you are IN! :-)

If Dave don't know, then it can't be done. Ho-ho.

Regards,

Dan.

Reply to
Danny Clarke

Thanks for that. I'll keep a note. When system was mentioned the 15 years since I last programmed on Unix just melted away................. and then came back again with a bump.......... sodding file permissions........ which bit does what...... arrrrggghhhh! Anyway, all sorted, prog No.1 is nearly done now ..... oh, the bloody time again!

Richard

Reply to
BeamEnds

Yes I noticed your timezone was a bit whacked, 8 hours before GMT! You really have wound the clock back..

Reply to
Ian Rawlings

Trying to get Microcat running under wine - not much joy yet!

Richard

Reply to
beamendsltd

Should work under vmware, although that would mean you'd be running it under a full copy of Windows! VMWare Server is free.

Reply to
Ian Rawlings

Oh bum. I'll get a cheap s/h pc for it then..... Richard

Reply to
beamendsltd

VMWare has its advantages over a real PC, and you can run windows 2000 in a 2-gig partition quite easily. Then you can back up the whole shebang by shutting down the virtual machine and just copying the files. You can also take a snapshot at a point at which the windows box is working, so when it borks up you can just hit "revert" and it'll instantly work again, albeit in the state it was in several weeks in the past. Performance is usually pretty good provided the host PC isn't totally s**te, a 1.8GHz laptop hosts several windows machines without breaking sweat.

Reply to
Ian Rawlings

I'll stick with s/h pc, I think. The thought of doing another re-partion on a "live" disc....... Plus I really want to be Mickysoft-free again as far as possible, and not having said pc anywhere near a network appeals!

Richard

Reply to
beamendsltd

You don't need to re-partition, windows lives entirely inside a few files on a normal linux filesystem, all contained in a directory that you specify. This means you can experiment with it without impacting the system other than installing vmware server.

If you don't want networking, you just select "no network" from the setup box and the PC won't even know there is a network, it will have no way to connect at all. Or you can set up a network that isn't connected by default so you can connect it to the net by selecting a single menu option and suddenly it'll think you've plugged a network cable in, once finished you just deselect the option and windows will think the cable's been unplugged.

You can even set it up so the windows box is frozen in time, get it to the state you want it in, then set it so that any changes made are thrown away when the system powers down and next time it starts, it'll be exactly the same as it was the last time you used it.

Reply to
Ian Rawlings

ah, I thought you meant partition as in, er partition! I'll have a look this evening, er tomorrrow - pool tonight.

Richard

Reply to
beamendsltd

Of course not ;-)

Get your priorities right man! Go and play pool ;-)

Reply to
Ian Rawlings

Works fine with Wine on Kubuntu. What problems are you having with it ?

Neil

Reply to
Neil Wilson

Neil Wilson uttered summat worrerz funny about:

Red ball corner pocket I'd guess at the mo :-)

Lee D

Reply to
Lee_D

Loads of DLL errors and then the install falls over!

Richard

Reply to
BeamEnds

Well, after having had a go at Templot intstallation, I went back to Microcat and it worked..... except the dongle!

Richard

Reply to
beamendsltd

MotorsForum website is not affiliated with any of the manufacturers or service providers discussed here. All logos and trade names are the property of their respective owners.