Hi
I installed twill on an ubunto linux like this.
sudo apt-get install python-twill
In the HTML file I can se that the username is added, I cant se the code, I'm not sure if that is if its hidden, or if it didn't work.
And I seem not to have made the Login button
This is an image of the...
Hi
Thanks, it allowed a bit more progress
I changed the login names to
formvalue 1 "ctl00_mnuLeft1_mSignin_mnuSignin_Username" L1977
formvalue 1 "ctl00_mnuLeft1_mSignin_mnuSignin_Password" larshg
But it is still not working, even thou I am not getting an error anymore
Any idears?
Thanks
Lhg
I'm having trouble getting this to work.
I tryed to change the formvalue but still I only get this message in twill-sh
this is the page I am trying to create a autologin script for.
kandu.dk
I'm not sure what you ment by the secound "will not work if"
Thanks
Lhg
Hi
I just curl the page and this seems to be the password box.
<div style="width: 180px; margin: 3px 3px 7px 3px;"><table cellspacing="0" cellpadding="0" style="width: 100%;"><tr class="mtop"><td><div style="margin: 10px 3px 0px 10px;"><span class="
TitleHaed">Login <img...
Hi
I would like to use an script to automaticly login to a webpage, and retrive the webpage to a txt file.
I tryed to get it to work using curl
curl --user name:password http://www.url.com -v >> webpage.log
But this does not work, the page is buield in asp and has a form with the login and...
Hi
I have a PHP script that I want to use from the commandline, and it has a parameter.
Usally I use this in a browser
http://host.dk/script.php?tid=2
where I in the script has this.
if(!isset($_GET['tid'])) {
$tid = "1";
} else {
$tid = $_GET['tid'];
}
I can run it on the...
Hi
Trying something witch should be simple.
I have a string witch contains a ,
and i want to replace it with ','
echo preg_replace($patterns, $replacements, $string);
echo preg_replace(,, ',', $string);
but I'm running into problems with the, can't get the replacement done.
Regards
LHG
...01-01-2010 10
02-01-2010 12
03-01-2010 9
In ORACLE something like this
SELECT to_char(date, 'yyyy-mm-dd hh24') "Dato",
COUNT(*)
FROM table
GROUP BY to_char(date, 'yyyy-mm-dd hh24')
I've managede to do it in months
SELECT
MONTH(CONVERT(VARCHAR, DATEADD(ss, create_date -...
Hi
I am using this piece of code to deliver a status regarding a system
select decode(area,
'B','BATCH',
'G','RESEND',
'Y','CR_FIX',
'N','IT_FIX',
'Q','ANALYSIS_IN_PROGRESS',
null,'UNKNOWN'...
Hi
I am using this piece of code to deliver a status regarding a system
select decode(area,
'B','BATCH',
'G','RESEND',
'Y','CR_FIX',
'N','IT_FIX',
'Q','ANALYSIS_IN_PROGRESS',
null,'UNKNOWN'...
Fantastic
Ended up with this.
when Fixed_in__Vendor_ = ''
then 999999
when Fixed_in__Vendor_ = NULL
then 999999
when IsNumeric(Fixed_in__Vendor_ + '.0e0') = 1
then CAST(Fixed_in__Vendor_ AS INT)
else 99999
End";
Thanks
Great that works.
I was trying to empty fields to come last, maby you can spot how that is done
This was my attemt
when IsNumeric(Fixed_in__Vendor_ + '.0e0') = 1
then CAST(Fixed_in__Vendor_ AS INT)
when Fixed_in__Vendor_ = ""
then 999999
else 99999
End";
Hi
I'm usint this sql to sort a varchar field, and i works.
select field1, field2
from table
order by CAST(field1 AS INT)
but when just one row contains a letter the sql doesn't return any rows, until the data in the field is an integer again.
Is there a way to get it out anyway? - either...
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.