NextPVR Forums
  • ______
  • Home
  • New Posts
  • Wiki
  • Members
  • Help
  • Search
  • Register
  • Login
  • Home
  • Wiki
  • Members
  • Help
  • Search
NextPVR Forums Public NextPVR Other Clients Old Stuff (legacy) MVP & NMT MVPMCX2 and other NMT stuff v
« Previous 1 … 20 21 22 23 24 … 37 Next »
request cannot be processed again

 
  • 0 Vote(s) - 0 Average
request cannot be processed again
dave.t
Offline

Member

Posts: 202
Threads: 34
Joined: Jun 2008
#11
2009-04-28, 11:42 PM
Ok this thing really is strange
I put the # symbol infront of almost all the lines except the echo statements. It still did not work.
I renamed the file to Agbpvr.cgi and it displayed the echo. Yes! But when I tried to run the same thing a second time Request Cannot Be Processed.
I renamed the file again to Bgbpvr.cgi and it worked one time only.
What is going on!
Dave
Turas
Offline

Member

Posts: 110
Threads: 18
Joined: Dec 2004
#12
2009-04-29, 10:45 AM
pBS Wrote:caution, as when i move the 'then' to next line, mine doesn't work anymore...

that's just what i said, too. you must NOT put the "then" into the next line. has to be:

if [ -f /etc/mvpmc/mvpmcx2 ] then
...
else
...
fi
+++ never buy the first version +++
dave.t
Offline

Member

Posts: 202
Threads: 34
Joined: Jun 2008
#13
2009-04-29, 10:47 AM
I got itBig Grin
Very strange thing. I use edit pad lite
I have a few set ups as I have 3 popcorns. After playing around with different cgi files, i thought i would copy the gbpvr.cgi file from one of the working popcorns. Again this did not work. I renamed this file to 1gbpvr.cgi and changed the index.htm that called it and it worked.
Does something keep record of bad files with attached names it seems silly that it wont work as gbpvr.cgi but will work if I rename it to 1gbpvr.cgi
Very strange
Dave
martint123
Offline

Posting Freak

UK, East Yorkshire
Posts: 4,658
Threads: 208
Joined: Nov 2005
#14
2009-04-29, 12:43 PM
Dave, this begins to ring old bells with me.
I had a script that worked for ages and was tar'd up on the PCH drive.
I had a play with it and it stopped working with the usual unhelpful error msg.
I untar'd the backup and it was the same.
So to play round I copied it to a test directory and all of a sudden it worked, but the original still didn't work.
Renaming the cgi files or the directory seemed to get things working - but for the life of me I don't know why!
Lindsay
Offline

Posting Freak

Posts: 1,231
Threads: 95
Joined: Apr 2005
#15
2009-04-30, 01:46 AM
Turas Wrote:that's just what i said, too. you must NOT put the "then" into the next line. has to be:

if [ -f /etc/mvpmc/mvpmcx2 ] then
...
else
...
fi

Funny, as my working script has the 'then' on its own line.
C2Duo E8400, 4GB, GE8600GT, PCH A-100, HVR2200, NPVR 1.5.31, Win 7 x64.
pBS
Offline

Posting Freak

Posts: 4,829
Threads: 182
Joined: Aug 2005
#16
2009-04-30, 02:33 AM
mine too....sorry, was a typo on my part...i meant when i *don't* move it onto next line, it doesn't work..

if [ -f /etc/mvpmc/mvpmcx2 ]
then
echo "Already Connected...........";
else

is how i've had it and when changed it wouldn't work...
it's a quirk of the syabas linux flavor as i tried every possible iteration to find out what actually worked..but that may change with firmware updates...
i *think* it can stay on same line only if whole 'if' statement is on one line..
Hardware: HDHR Prime, HDPVR 1212, Raspberry pi2, VFD display w/LCDSmartie
Turas
Offline

Member

Posts: 110
Threads: 18
Joined: Dec 2004
#17
2009-04-30, 01:44 PM
hmm. that's strange indeed.
but you're right that the syntax is depending on the linux-flavor.

===
On http://steve-parker.org/sh/test.shtml (tutorial about Bourne and the Bourne Again shells) I found:

Also, be aware of the syntax - the "if [ ... ]" and the "then" commands must be on different lines. Alternatively, the semicolon ";" can seperate them:

if [ ... ]; then
# do something
fi
===

so if pch is using a bourne shell then obviously i'm wrong. which is strange indeed since "then" on the same line does work for me.
(or so i thought ... will have to doublecheck this again Smile)

turas
+++ never buy the first version +++
Turas
Offline

Member

Posts: 110
Threads: 18
Joined: Dec 2004
#18
2009-04-30, 03:30 PM
so.... sorry for adding some confusion.
just checked my gbpvr.cgi and you (and the tutorial Smile) are completely right, it has to be:

if [ -f /etc/mvpmc/mvpmcx2 ]
then
...
else
...
fi

otherwise you'll get a syntax error:

.../opt/sybhttpd/localhost.drives/HARD_DISK/_GB-PVR/gbpvr.cgi: line 14: syntax error: "else" unexpected (expecting "then")

sorry again for remembering it the wrong way round.
turas
+++ never buy the first version +++
philly_phenom
Offline

Senior Member

Posts: 566
Threads: 97
Joined: Aug 2006
#19
2009-04-30, 07:48 PM
Mine works fine like this:

if [[ <boolean expr> ]]; then

<stuff>

fi

Maybe the A100's use a different shell than A110's?
GBPVR v1.4.7
Windows 7 Ultimate (64-bit)
Intel Core 2 Duo 2.33 GHz
4 GB RAM, 160GB system drive
640GB recording drive
PVR-500 - analog cable stations
HDHomeRun - ASTC via antenna
nVidia GeForce 8600GT
1 PCH @ 1080p componenent (was NTSC via composite)
1 PCH @ 1080p HDMI (was component)
trummel
Offline

Senior Member

Posts: 276
Threads: 34
Joined: Oct 2008
#20
2009-04-30, 08:45 PM
The key there is the semicolon. It tells the linux shell that what follows is a new command. you could probably do this:-
if [ -f /etc/mvpmc/mvpmcx2 ];then;...;else;...;fi
although I wouldn't recommend it.

I use a similiar thing all of the time to test changes to my iptables firewall on a remote system. If I cock up, it only locks me out for 10 seconds.

service iptables start; sleep 10; service iptables stop

Server: Ci5 2500k, 3GB, Windows Server 2012, nPVR 3.5.7. 2xWinTV-DVB-T USB, 1xWinTV-DVB-T PCI, 2 x BlackGold DVB-T, 1xPCTV290E and 1xPCTV460E on Astra 28.2 E.
clients: RPI2, Acer R3700, PCH-A110, NUC, 3xSamsung Smart TV
« Next Oldest | Next Newest »

Users browsing this thread: 1 Guest(s)

Pages (3): « Previous 1 2 3 Next »


Possibly Related Threads…
Thread Author Replies Views Last Post
  Oh no! Request cannot be processed! drbenjamin 4 15,786 2016-12-26, 11:11 PM
Last Post: mvallevand
  PCH-A110 Unable to install with Request cannot be processed jeffers 6 6,792 2014-04-01, 03:00 PM
Last Post: jeffers
  Trouble with 3rd PCH - "Request cannot be processed" jghanisco 4 5,029 2013-07-23, 03:49 AM
Last Post: jghanisco
  Networking problems and "Request Cannot be processed" Rory 2 3,252 2012-11-16, 08:53 PM
Last Post: Rory
  Request cannot be processed ottoguy 35 10,735 2012-01-02, 09:38 PM
Last Post: mvallevand
  New M34A on eixting GBPVR 1.4.7: GBPVR via NetworkBrowser: "Request cannot be proc" lucille84 3 2,125 2010-11-09, 12:30 AM
Last Post: mvallevand
  "Request Cannot be processed" error message TK12 12 5,099 2010-07-07, 03:32 AM
Last Post: TK12
  "Request Cannot be processed" dvasco 16 6,030 2010-01-10, 02:37 PM
Last Post: mvallevand
  Feature Request zaldwaik 1 1,526 2009-12-25, 03:46 PM
Last Post: mvallevand
  "Request cannot be processed" error after changing resolution on PCH tjb 12 4,948 2009-10-28, 12:55 PM
Last Post: tjb

  • View a Printable Version
  • Subscribe to this thread
Forum Jump:

© Designed by D&D, modified by NextPVR - Powered by MyBB

Linear Mode
Threaded Mode