[an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] (none) [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] (none) [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive]
 
[an error occurred while processing this directive] [an error occurred while processing this directive]
Skåne Sjælland Linux User Group - http://www.sslug.dk Home   Subscribe   Mail Archive   Forum   Calendar   Search
MhonArc Date: [Date Prev] [Date Index] [Date Next]   Thread: [Date Prev] [Thread Index] [Date Next]   MhonArc
 

Re: [CPROG] Sti til eksekverbar



On Wed, 23 Jul 2003, donald_j_axel wrote:
> Exempelvis: 
> $: echo $$ ## mit eget procnummer
> 16380
> $:ls /proc/$$ ## vis filer i mit eget procdir
> $:ls /proc/16380        
> cmdline  cwd  environ  exe  fd  maps  mem  root  stat  statm  status
> $:ls -lo /proc/16380/exe
> lrwxrwxrwx    1 root       0 Jul 23 00:15 /proc/16380/exe -> /bin/ksh
> $:ls -lo /proc/16380/exe | gawk '{ print $NF; }'
> /bin/ksh
> $:
> 
> Hvilket for mit vedkommende er rigtigt (jeg kan godt lide pdksh).

Så programmer er nødt til at parse /proc filer for at finde deres egen sti 
?
Mkay. Jeg havde håbet, at det var nemmere men tak for svarene.

Robert



 
Home   Subscribe   Mail Archive   Index   Calendar   Search

 
 
Questions about the web-pages to <www_admin>. Last modified 2005-08-10, 20:09 CEST [an error occurred while processing this directive]
This page is maintained by [an error occurred while processing this directive]MHonArc [an error occurred while processing this directive] # [an error occurred while processing this directive] *