> For the complete documentation index, see [llms.txt](https://docs.editran.onesait.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.editran.onesait.com/documentacion-editran/ibm-editran-v5.3-iseries-en/proxy/onesait-editran-proxy-on-unix-and-windows/unix-startup-and-shutdown.md).

# UNIX startup and shutdown

To start and stop editran/Proxy, run EDIProxy start and EDIProxy stop.

ediproxy start –h156.122.34.12:8888

In UNIX environments ediproxy is the script listed below.

\#!/bin/sh

\########################################################################

\# Communications Department

\# (C) INDRA, S.A. January, 1999.

\#

\# sh shell script for starting/stopping the EditranPX system.

\#

\#######################################################################

\#EDI\_IPC\_KEY\_BASE=8000

\#export EDI\_IPC\_KEY\_BASE

\#################

\#SUN, DEC and LINUX

LD\_LIBRARY\_PATH=\`pwd\`:$LD\_LIBRARY\_PATH

export LD\_LIBRARY\_PATH

\#################

\#AIX

LIBPATH=\`pwd\`

export LIBPATH

\#################

\#HP

SHLIB\_PATH=\`pwd\`

export SHLIB\_PATH

\#export X25\_IFNAME\_A=NXL0

\#export X25\_IFNAME\_B=NXL1

\#export SNCE\_DES\_LIB=/$CICSREGION/lib

\#export SNCE\_PROGRAM\_KEYS=/$CICSREGION/ftesbatch/NXEN2EDI

\#################

\#DEC DTE CLASS DEFINITION

\#X25\_DTE\_CLASS\_A=llc2-class-a

\#export X25\_DTE\_CLASS\_A

\#X25\_DTE\_CLASS\_B=llc2-class-b

\#export X25\_DTE\_CLASS\_B

\#################

\#SOCKS5 SERVER

\#SOCKS5\_SERVER=proxy.indra.es:1080

\#export SOCKS5\_SERVER

PROC\_STAR="ediproxyth logsrv"

PROC\_STOP="ediproxyth logsrv"

N=\`tput rmso\`

B=\`tput smso\`

if ps -ef > /dev/null 2>&1; then

PS="ps -ef"

else

PS="ps -x"

fi

\# start of the given process

startproc() {

if \[ -f $1 ]; then

echo '\*\*\* Start \*\*\*' - $USER - \`date\` >>$1.out

if \[ ! -z "$traza" ] ; then

EDI\_DEBUG=$1.traza

else

EDI\_DEBUG=

fi

export EDI\_DEBUG

$1 >> $1.out 2>&1 &

sleep 8

pid=\`$PS |

grep $! | grep $1 | grep -v grep |

awk '{print $2}'\`

if \[ "$pid" != "" ] ; then

echo "Process $1 started."

return 0

else

echo "Process $1 NOT STARTED."

return 1

fi

fi

}

\# stop of the given process

stopproc() {

pid=\`$PS |

grep $1 | grep -v grep |

awk '{print $2}'\`

if \[ "$pid" != "" ] ; then

kill -2 $pid > /dev/null 2>&1

if \[ $? = 0 ] ; then

echo "Process $1 stopped."

return 0

else

echo "Process $1 NOT STOPPED."

return 1

fi

else

echo "Process $1 not found."

fi

sleep 4

}

\# status of the given process

statusproc() {

pid=\`$PS |

grep $1 | grep -v grep |

awk '{print $2}'\`

if \[ "$pid" != "" ] ; then

return 0

else

return 1

fi

}

\##################################

traza=

force=

while getopts tf opcion

do

case $opcion in

t) traza=1 ;;

f) force=1 ;;

\\?) printf "Invalid option\n" ;;

esac

done

shift \`expr $OPTIND - 1\`

case $1 in

'start')

echo "Starting editran/PX system..."

\# if \[ -z "$force" ] ; then

\# statusproc ediproxyth

\# if \[ $? = 0 ]; then

\# echo "${B}Another editran/PX system is running${N}."

\# exit 1

\# fi

\# fi

for PROCESO in $PROC\_STAR;

do

startproc $PROCESO

done;

statusproc ediproxyth

if \[ $? = 0 ] ; then

echo "editran/PX system started."

exit 0

else

echo "${B}editran/PX system NOT STARTED${N}."

exit 1

fi

;;

'stop')

echo "Stopping editran/PX system..."

for PROCESO in $PROC\_STOP;

do

stopproc $PROCESO

done;

\# statusproc editranp

\# if \[ $? = 0 ]; then

\# echo "${B}editran/PX system NOT STOPPED${N}."

\# exit 0

\# else

echo "editran/PX system stopped."

exit 1

\# fi

;;

'status')

echo "editran/PX system status..."

statusproc ediproxyth

if \[ $? = 0 ] ; then

echo "${B}editran/PX system started${N}."

exit 0

else

echo "editran/PX system stopped."

exit 1

fi

exit 0

;;

\*)

printf "Usage: %s \[-t] \[-f] start|stop|status\n" $0

printf "\t-t\t Trace\n"

\# printf "\t-f\t Ignore another editran/PX system running\n"

printf "\tstart\t Start the editran/PX system\n"

printf "\tstop\t Stop the editran/PX system\n"

printf "\tstatus\t Get the status of the editran/PX system\n"

exit 1

;;

esac


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.editran.onesait.com/documentacion-editran/ibm-editran-v5.3-iseries-en/proxy/onesait-editran-proxy-on-unix-and-windows/unix-startup-and-shutdown.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
