From: randy_dunlap <rdunlap@xenotime.net>
To: "Micha__ Piotrowski" <piotrowskim@trex.wsi.edu.pl>
Cc: paolo.ciarrocchi@gmail.com, linux-kernel@vger.kernel.org
Subject: Re: Script to help users to report a BUG
Date: Thu, 23 Jun 2005 10:27:53 -0700 [thread overview]
Message-ID: <20050623102753.69c63d48.rdunlap@xenotime.net> (raw)
In-Reply-To: <42BAA5C2.7060906@trex.wsi.edu.pl>
[-- Attachment #1: Type: text/plain, Size: 620 bytes --]
On Thu, 23 Jun 2005 14:06:26 +0200 Micha__ Piotrowski wrote:
| Hi,
|
| Here is new "big" version:
| http://stud.wsi.edu.pl/~piotrowskim/files/ort/ort-a7.tar.bz2
|
| Changes... You will see ;).
|
| Todo:
| raport sending!!!
|
| Thans for patches.
Here are more comments and a patch for you (attached).
ver. a7:
output file with '/' didn't work for me; changed to hyphens;
just one one tmp file name (not several p?.txt);
write the input TXT lines to the temp file before calling editor;
remove the tmp file at end;
I think that the editor and email client Q&A is overkill.
---
~Randy
[-- Attachment #2: ort.sh.a7.patch --]
[-- Type: application/octet-stream, Size: 2637 bytes --]
--- ort.sh.a7 2005-06-23 04:59:29.000000000 -0700
+++ ort.sh 2005-06-23 10:14:33.000000000 -0700
@@ -16,7 +16,7 @@
# along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
-ORT_F=ort_oops-`date +%x`.txt
+ORT_F=ort_oops-`date +%F`.txt
VER=v.a7
M_EMAIL=a@b.c
@@ -128,9 +128,9 @@
done
}
-if [[ -f p?.txt ]]
+if [[ -f ortmp.txt ]]
then
- rm p?.txt
+ rm ortmp.txt
fi
if [[ -z "$1" || "$1" = "--help" ]]
@@ -154,21 +154,24 @@
echo "[1.] One line summary of the problem: (press Return to continue)"
echo -e "\n[1.] One line summary of the problem:" >> $ORT_F
read TXT
-$EDITOR p1.txt
-cat p1.txt >> $ORT_F
+echo $TXT > ortmp.txt
+$EDITOR ortmp.txt
+cat ortmp.txt >> $ORT_F
echo "[2.] Full description of the problem/report: (press Return to continue)"
echo -e "\n[2.] Full description of the problem/report:" >> $ORT_F
read TXT
-$EDITOR p2.txt
-cat p2.txt >> $ORT_F
+echo $TXT > ortmp.txt
+$EDITOR ortmp.txt
+cat ortmp.txt >> $ORT_F
echo "[3.] Keywords (i.e., modules, networking, kernel): (press Return to continue)"
echo -e "\n[3.] Keywords (i.e., modules, networking, kernel):" >> $ORT_F
read TXT
+echo $TXT > ortmp.txt
#TOPIC=$TXT
-$EDITOR p3.txt
-cat p3.txt >> $ORT_F
+$EDITOR ortmp.txt
+cat ortmp.txt >> $ORT_F
echo -e "\n[4.] Kernel version (from /proc/version):" >> $ORT_F
cat /proc/version >> $ORT_F
@@ -179,8 +182,9 @@
echo -e "\n[6.] A small shell script or example program which triggers the problem (if possible): (press Return to continue)"
echo -e "\n[6.] A small shell script or example program which triggers the problem (if possible):" >> $ORT_F
read TXT
-$EDITOR p6.txt
-cat p6.txt >> $ORT_F
+echo $TXT > ortmp.txt
+$EDITOR ortmp.txt
+cat ortmp.txt >> $ORT_F
echo -e "\n[7.] Environment" >> $ORT_F
@@ -276,8 +280,14 @@
echo -e "\n[9.] Other notes, patches, fixes, workarounds: (press Return to continue)"
echo -e "\n[9.] Other notes, patches, fixes, workarounds:" >> $ORT_F
read TXT
-$EDITOR p9.txt
-cat p9.txt >> $ORT_F
+echo $TXT > ortmp.txt
+$EDITOR ortmp.txt
+cat ortmp.txt >> $ORT_F
+
+if [[ -f ortmp.txt ]]
+ then
+ rm ortmp.txt
+fi
END=0
while [ $END = 0 ]
@@ -345,8 +355,8 @@
done
elif [ $TXT = "N" ] || [ $TXT = "n" ]
then
- echo -e "\nPlease email $ORT_F to linux-kernel@vger.kernel.org or "
- echo -e "some other appropriate Linux mailing list."
+ echo -e "\nPlease email $ORT_F to linux-kernel@vger.kernel.org "
+ echo -e "or some other appropriate Linux mailing list."
END=1
fi
-done
\ No newline at end of file
+done
next prev parent reply other threads:[~2005-06-23 17:33 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-06-19 20:32 Paolo Ciarrocchi
2005-06-22 19:08 ` randy_dunlap
2005-06-22 20:52 ` Michał Piotrowski
2005-06-23 0:47 ` randy_dunlap
2005-06-23 18:24 ` Jesper Juhl
2005-06-23 19:06 ` randy_dunlap
2005-06-23 19:13 ` Jesper Juhl
2005-06-23 17:48 ` Michał Piotrowski
[not found] ` <4d8e3fd305062313032c9789e8@mail.gmail.com>
2005-06-23 18:23 ` Michał Piotrowski
[not found] ` <4d8e3fd305062400524f0ad358@mail.gmail.com>
2005-06-24 6:52 ` Michał Piotrowski
2005-06-24 15:41 ` randy_dunlap
2005-06-24 8:17 ` Michał Piotrowski
[not found] ` <4d8e3fd3050624032264081edf@mail.gmail.com>
[not found] ` <4d8e3fd3050624050955aac41b@mail.gmail.com>
2005-06-24 14:50 ` Martin J. Bligh
[not found] ` <42B5C747.5050207@trex.wsi.edu.pl>
[not found] ` <4d8e3fd30506200027686cbafa@mail.gmail.com>
[not found] ` <42B6D74B.3020409@trex.wsi.edu.pl>
[not found] ` <4d8e3fd30506201322242d540a@mail.gmail.com>
[not found] ` <4d8e3fd305062205371b0a506d@mail.gmail.com>
[not found] ` <42B951B4.80703@trex.wsi.edu.pl>
[not found] ` <4d8e3fd30506220656241e1521@mail.gmail.com>
[not found] ` <42B9544E.7030007@trex.wsi.edu.pl>
[not found] ` <4d8e3fd305062212343d9849ee@mail.gmail.com>
2005-06-22 21:27 ` Michał Piotrowski
[not found] ` <42B9D391.4020602@trex.wsi.edu.pl>
[not found] ` <4d8e3fd305062300541eca2c10@mail.gmail.com>
2005-06-23 12:06 ` Michał Piotrowski
[not found] ` <9a8748490506231011128f7a38@mail.gmail.com>
2005-06-23 16:21 ` Michał Piotrowski
2005-06-23 18:59 ` Jesper Juhl
2005-06-23 17:27 ` randy_dunlap [this message]
2005-06-23 18:28 ` Vara Prasad
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20050623102753.69c63d48.rdunlap@xenotime.net \
--to=rdunlap@xenotime.net \
--cc=linux-kernel@vger.kernel.org \
--cc=paolo.ciarrocchi@gmail.com \
--cc=piotrowskim@trex.wsi.edu.pl \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®