Opened 8 years ago

Last modified 8 years ago

#2299 open defect

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

Reported by: David Jablonski 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 by beastd, 8 years ago

Analyzed by developer: set
Reproduced by developer: set
Severity: majornormal
Status: newopen

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.