Hallo, > >> Ich habe gerade keine idee wie ich an die stdin kommen könnte wenn der >> prozess bereits läuft. > > Das müsste /proc/<pid>/fd/1 sein. Falls nur eine mplayer-Instanz läuft > (ungetestet): > > $ echo Befehl > /proc/$(pgrep mplayer)/fd/1 Ich würde eher sagen /proc/$(pgrep mplayer)/fd/0 ist was du suchst. laut "man proc": /proc/[number]/fd This is a subdirectory containing one entry for each file which the process has open, named by its file descriptor, and which is a symbolic link to the actual file (as the exe entry does). Thus, 0 is standard input, 1 standard output, 2 standard error, etc. Gruß Sven
Attachment:
signature.asc
Description: OpenPGP digital signature