Opened 15 months ago

Last modified 9 months ago

#2299 open defect

Slave command "run" (MP_CMD_RUN) not implemented for MingW

Reported by: Djabby Owned by: beastd
Priority: normal Component: undetermined
Version: unspecified Severity: normal
Keywords: Cc:
Blocked By: Blocking:
Reproduced by developer: yes Analyzed by developer: yes

Description

Summary of the bug:
In slave mode it's not possible to run shell commands when using the Windows version of mplayer.
How to reproduce:

% mplayer -slave anyfile.mp4
MPlayer version (C) ...
run "echo test > C:\test.txt"

In command.c MP_CMD_RUN will do nothing when mplayer is compiled with MingW.

Change History (1)

comment:1 Changed 9 months ago by beastd

  • Analyzed by developer set
  • Reproduced by developer set
  • Severity changed from major to normal
  • Status changed from new to open

The run command is only implemented for unix-like systems:

  1. fork
  2. exec /bin/sh and pass the a command line string (previously expanded by MPlayer) via -c option

When compiled with mingw it doesn't do anything.

I can see the following ways to move forward:

  1. treat this ticket as a documentation bug report (and hopefully fix it)
  2. treat this ticket as an enhancement request and start defining what should happen on Windows
  3. like 1 and 2 combined: do 1 for this ticket and open a new ticket for 2
Note: See TracTickets for help on using tickets.