A program which has to communicate with the X windows system must be runned by a user which has a running X session. Did you started the window manager as root ? ( This is highly unrecommended. ) Can you start any other program which has graphical interface ( xterm, xclock, xmms... ) ?
... I...
serious newbie question here ... does this code look familiar to anyone
<span class="page" onmouseover="this.style.background='#f7f7f7'" onmouseout="this.style.background=''" onclick="javascript:__doPostBack('Pager','8')">
8
</span>
... I'd assumed it was javascript, but probably I'm wrong...
That's probably a good idea Baby*
I know abosolutely nothing about .net, but the code does tend to suggest that this is javascript
<span class="page" onmouseover="this.style.background='#f7f7f7'" onmouseout="this.style.background=''" onclick="javascript:__doPostBack('Pager','8')">
8
</span>...
if it's in the .net arch, then why is it denoted as
javascript:__doPostBack
I don't see this piece of the script being sent server-side, it appears to be a client-side script with no corresponding function. Maybe I'm missing something ??
I'm looking at someone's javascript here in my console. The javascript has a
onclick="javascript:__doPostBack('Pager','2')"
function in it.
The only problem is though, that there is no __doPostBack function on the html or the .js file.
What does the __ mean to javascript ??
Why does the...
Ok, I got some help over on the mozilla IRC. I got a moz-remote program that works fine as a substitution.
http://wp.netscape.com/newsref/std/remote.c
But I have one remaining problem with the script. It works as is
#!/bin/sh
if [ $# -eq 0 ]
then
echo " For the \"$0\" script, you...
This is kinda strange
I input
root@ubuntu:/home/babo/Desktop/spider_proj # firefox -remote "openFile(spider)"
(firefox-bin:13053): Gdk-WARNING **: cannot set locale modifiers
Error: No running window found
... and it automatically opens up some kinda spiderman webpage off the web. I then...
Oops ... I think that was me ... thanks feherke.
Unforutnately though it doesn't work either way and just gives me a
root@ubuntu:/home/babo/Desktop/spider_proj # mozilla -remote "openURL(http://www.example.com,new-tab)"
(firefox-bin:8303): Gdk-WARNING **: cannot set locale modifiers
Error...
Hi phv,
no luck I'm afraid.
Even this doesn't work
firefox -remote "openURL(http://www.tek-tips.com,new_tab)"
... the funny thing is that it worked last night though ???
Thanks phv,
I seem to be getting a weird error though. I got it last night as well but I just rebooted and it went away, unfortunately I don't have such success this morning ....
(firefox-bin:7460): Gdk-WARNING **: cannot set locale modifiers
Error: No running window found
when I try the...
Thanks phv,
that's kinda like it but I actually want my sed command to just take in a "$f" and then modify it and pass it along to the firefox -remote command to open it in my browser.
I'm parsing a load of files (webpages) on my computer, and if those pages have the keyword in them (in this...
Ok thanks guys, just one more question
find . -type f | while read f
do
if grep -q 'university' "$f"
then echo "$f" > file.links && sed 's_^./_http://_' "$f" && firefox -remote "openURL(\"$f\",new_tab)
else continue
fi
done
I want to sed my file.links so that they give me properly formed...
thanks feherke,
I'm having a bit of a 'double quotes inside a double quotes' problem though. This is my code
find . -type f | while read f
do
if grep -q 'string' "$f"
then echo "$f" >> file.links && firefox -remote "openURL("$f",new-tab)"
else continue
fi
done
... now I realize that this is...
I'm trying to feed a number of links into the firefox browser and have them all open up as different tags, rather than different processes.
Is this possible ??
At the moment I can't seem to open up even one link in firefox
firefox < www.website.com
I've had a look at the man page and it...
I just want to print something to a file ... I know this must seem really easy but I'm looking for something like a 'print' function.
Echo seems to only print to stdout, so that's no good and I don't have any luck on just
print "string" file
what should I do then ??
Ok cool, I think I've found something a good text on sed ...
Feherke I think your suggestion was missing quite of bit of the sed command as well. The best one I've come up with is probably
http://www.grymoire.com/Unix/Sed.html
... hopefully I'll be able to take it myself from here ... thanks...
thanks anni*
I can't seem to get your code to work unfortunately, it just spits out
root@ubuntu:/home/babo/Desktop/spider_proj # grep -ri 'mailto:.*string' . | sed 's/\([^:]*\):.*mailto:\([^" >]*\).*/\1: \2/i'
./spider: \([^
./spider: \([^
... also, I'm looking to parse a file that matches...
X-cellent ... thanks feherke
I had most of this script done a couple of weeks ago but lost it when I reinstalled and forgot to save it.
I'll read over the reference in the morning ... I may still have a few questions later on though :)
thanks again guys ...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.