From 926f39594e8048c4f6313c6f7de717b4dfaa7a0e Mon Sep 17 00:00:00 2001 From: drowe67 Date: Wed, 3 Feb 2010 02:54:25 +0000 Subject: [PATCH] updated debug instructions git-svn-id: https://svn.code.sf.net/p/freetel/code@136 01035d8c-6547-0410-b346-abe4f91aad63 --- easy-asterisk-gui/.gitignore | 0 easy-asterisk-gui/cgi-bin/.gitignore | 0 mini-asterisk-gui/Makefile | 2 +- mini-asterisk-gui/README.txt | 11 ++++++++++- 4 files changed, 11 insertions(+), 2 deletions(-) create mode 100644 easy-asterisk-gui/.gitignore create mode 100644 easy-asterisk-gui/cgi-bin/.gitignore diff --git a/easy-asterisk-gui/.gitignore b/easy-asterisk-gui/.gitignore new file mode 100644 index 00000000..e69de29b diff --git a/easy-asterisk-gui/cgi-bin/.gitignore b/easy-asterisk-gui/cgi-bin/.gitignore new file mode 100644 index 00000000..e69de29b diff --git a/mini-asterisk-gui/Makefile b/mini-asterisk-gui/Makefile index e3edc860..24703e5a 100644 --- a/mini-asterisk-gui/Makefile +++ b/mini-asterisk-gui/Makefile @@ -16,7 +16,7 @@ test: rcp cgi-bin/*.html cgi-bin/*.sh cgi-bin/*.pl cgi-bin/*.js cgi-bin/*.css \ cgi-bin/*.png root@$(HOST):/www - rcp etc/asterisk/*.conf root@$(HOST):/etc/asterisk + scp etc/asterisk/*.conf root@$(HOST):/etc/asterisk .PHONY : static static: diff --git a/mini-asterisk-gui/README.txt b/mini-asterisk-gui/README.txt index 64f3859a..a6b9c660 100644 --- a/mini-asterisk-gui/README.txt +++ b/mini-asterisk-gui/README.txt @@ -254,8 +254,17 @@ x86: [david@host cgi-bin]$ export HTTP_COOKIE="loggedin=1" ; sh admin.sh -. The -x option at the stop of any sheel script can be useful to watch +. The -x option at the stop of any shell script can be useful to trace execution on an IP0X: #!/bin/sh -x + However this only works if the shell script has executable perminissions + set. If running using the sh command you can also trace execution: + + [david@host cgi-bin]$ sh -x login.sh + +. Testing forms from the command line can be achieved by manually +setting up the CGI QUERY_STRING environment variable: + + [david@host cgi-bin]$ export QUERY_STRING="pass=uClinux" ; sh login.sh -- 2.25.1