and another step :
I need a way for obtain the complete path of a running app (more spécially
the desktop).
my idea is to obtain the name with appl_search (desktop=type
application+shell), and to scan
the discs for searching the path...
is someone having a better way ?
Patrick,
> and another step :
> I need a way for obtain the complete path of a running app (more spécially
> the desktop).
>
> is someone having a better way ?
cd /kern/<pid>/cwd
/bin/pwd
You can do this also with systemcalls from an application for sure :-)
Tschuess
...Frank
--
ATARI FALCON 040 // MILAN 060
-----------------------------------------
http://www.cs.uni-magdeburg.de/~fnaumann/
e-Mail: fnau...@freemint.de
--- dcntl.h ---
struct ploadinfo
{
/* passed */
unsigned short fnamelen;
/* returned */
char *cmdlin /* 128 byte */, *fname;
};
--- dcntl.h ---
Bye,
Andi
> > is someone having a better way ?
> You could do a Fcntl(fd,&info,PLOADINFO)
>
> --- dcntl.h ---
> struct ploadinfo
> {
> /* passed */
> unsigned short fnamelen;
>
> /* returned */
> char *cmdlin /* 128 byte */, *fname;
> };
> --- dcntl.h ---
It's recommended to use /kern/<pid>/cmdline instead. There is also no 128
byte limit for that.
> It's recommended to use /kern/<pid>/cmdline instead. There is also no 128
> byte limit for that.
OK!
Ciao,
Andi