Last active
October 29, 2015 02:46
-
-
Save phpdave/7750a2e36e92d726a544 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# IBMi aliases | |
alias db2='function _db2(){ echo "Running $1"; system -i "call QSYS/QZDFMDB2 parm('\''$1'\'')"; };_db2' | |
alias wrkactjob='function _wrkactjob(){ system WRKACTJOB; };_wrkactjob' | |
alias zendjobs='function _zendjobs(){ ps -ef | grep -i zend; };_zendjobs' | |
alias qccsid='function _qccsid(){ system "DSPSYSVAL SYSVAL(QCCSID)"; };_qccsid' | |
alias dsplibl='function _dsplibl(){ qsh -c '\''/QSYS.LIB/QSHELL.LIB/SYSTEM.PGM dsplibl'\''; system -i "DSPLIBL"; };_dsplibl' | |
# IBMi PHP | |
alias startzendserver='function _StartZendServer(){ system "STRTCPSVR SERVER(*HTTP) HTTPSVR(ZENDSVR)"; };_StartZendServer' | |
alias endzendserver='function _EndZendServer(){ system "ENDTCPSVR SERVER(*HTTP) HTTPSVR(ZENDSVR)"; };_EndZendServer' | |
# ::TODO:: change sleep 20 to wait for ENDTCPSVR to finish | |
alias restartzendserver='function _ResterZendServer(){ system "ENDTCPSVR SERVER(*HTTP) HTTPSVR(ZENDSVR)"; sleep 20; system "STRTCPSVR SERVER(*HTTP) HTTPSVR(ZENDSVR)"};_RestartZendServer' | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment