ERROR: Input redirection is not supported, exiting the process immediately.


hello everyone, thank taking time read , me problem.

i first mention running command line remote computer. have no visual assistance.i've worked linux box's new windows hyper-v server.

here's problem:

i attempting run "startdedicated.bat" however when type in "./startdedicated.bat" returned this:

$ ./startdedicated.bat
file not found
starting server ...
23:23:55.00
error: input redirection not supported, exiting process immediately.
23:23:55.00

i type in "tasklist" , there no sight of file running. i've looked error , people talk time out command said new windows server not familiar do.

this .bat file contains:

@echo off
rem starts dedicated server
rem
rem -quit, -batchmode, -nographics: unity commands
rem -configfile              : allows server settings set in xml config file. use no path if in same dir or full path.
rem -dedicated                    : has last option start dedicated server.

set logtimestamp=


:: --------------------------------------------
:: remove old logs (only keep latest 20)

/f "tokens=* skip=19" %%f in ('dir 7daystodie_data\output_log*.txt /o-d /tc /b') del 7daystodie_data\%%f



:: --------------------------------------------
:: building timestamp logfile

:: check wmic available
wmic.exe alias /? >nul 2>&1 || goto s_start

:: use wmic retrieve date , time
/f "skip=1 tokens=1-6" %%g in ('wmic path win32_localtime day^,hour^,minute^,month^,second^,year /format:table') (
    if "%%~l"=="" goto s_done
    set _yyyy=%%l
    set _mm=00%%j
    set _dd=00%%g
    set _hour=00%%h
    set _minute=00%%i
    set _second=00%%k
)
:s_done

:: pad digits leading zeros
set _mm=%_mm:~-2%
set _dd=%_dd:~-2%
set _hour=%_hour:~-2%
set _minute=%_minute:~-2%
set _second=%_second:~-2%

set logtimestamp=__%_yyyy%-%_mm%-%_dd%__%_hour%-%_minute%-%_second%

:s_start


:: --------------------------------------------
:: starting server


echo|set /p="251570" > steam_appid.txt

start 7daystodie -logfile 7daystodie_data\output_log%logtimestamp%.txt -quit -batchmode -nographics -configfile=serverconfig.xml -dedicated


echo starting server ...

echo %time%
timeout 5 > nul
echo %time%

cls

echo.
echo server running in background, can close window.
echo can check task manager if server process running.
echo.
echo.

pause

thank reading.

the "file not found" error coming before echo 'starting server ...' line.  guess is not finding serverconfig.xml file in previous line.  did not specify directory location looking in connected directory.

the 'input redirection' error coming on timeout statement.  don't know why won't accept > nul, try without see if runs.


. : | : . : | : . tim



Windows Server  >  Windows Server 2012 General



Comments

Popular posts from this blog

WIMMount (HSM) causing cluster storage to go redirected (2012r2 DC)

Failed to delete the test record dcdiag-test-record in zone test.com

Azure MFA with Azure AD and RDS