hi, I've put action="/twiki/bin/$name" in startform , method="get", so when I click on submit button, I can run a shellscript called $name. Well, do anyone know if it's possible to pass parameters to this script call ? Hello again. If I need to change variables globally I would only need to put them at Main.TWikiPreferences and not at TWiki.TWikipreferences as well right? hi, how can I pass an argument to a shellscript call by using cgi? mporo na peraso argument se shell script otan to kalo me cgi? sorry wrong channel fellipe: yes you can is the argument going to be called always? (actually wrong language above, correct channel :) aiRness: both TWiki.TWikiPreferences and Main.TWikiPreferences work, but don't put your settings in the TWiki.TWikiPreferences one because those changes will be lost on the next twiki upgrade btw, what language was that? greek :) but I'm working at Munich (greek with english chars basically) I live in Munich basically :-) ok so basically I'm setting the values on Main.TwikiPreferences, with '* Set = ' and I'm good regarding the migration though, I have a clean upgraded twiki now but I prefer just to rsync the directories from pub/ and data/ without using the backup plugin possible but don't sync the TWiki web! and of course leaving the default subdirectories from the original installation which directory is that? you mean pub/TWiki ? data/TWiki and pub/TWiki yeah exactly what is the recommended method for migrating data? i am in a seminar now and can't help much at this time see upgrade guide and search the support web I know the process, no worries but I'm not a fan of the backuprestore plugin aiRness, Hi! sorry for delaying response, I came back from lunch, so, aiRness, the argument will always be called because it's the name of the file aiRness, wich will be read by the script, got it? aiRness, I can create a formelement text type to read the param, but if I concatenate to the action=$name-$param, the apache cannot find the file $name-$param .. got it? aiRness, for example, I tried action="/twiki/bin/test $timestamp" and got: "The requested URL /twiki/bin/test 2013-02-12223 was not found on this server." aiRness, the main challenge, for me, is to pass the timestamp as parameter to the test script.. and I don't have any idea to do it fellipe: you need to put the argument into a hidden input field PeterThoeny, hmmMM!! do you mind to take me to do it? I am so newbie in twiki.. this is standard html, not twiki btw PeterThoeny, hmm, let me paste for you a thing I found in google and you help me to tweak this.. i am at a seminar, half ear here PeterThoeny, ah, ok.. sorry. no problem to be slow to help me ;) PeterThoeny, well, what's the difference between creating a hidden input and %FORMELEMENT{ type="text" name="timestamp" }% ? PeterThoeny, I already made this stuff wich I pasted now PeterThoeny, could you take a little look: http://pastebin.com/LCquvgUx ? Hi PeterThoeny my link was down.. I am back, are you there? Hi PeterThoeny my link was down.. I am back, are you there? i am back i have not used % FORMELEMENT but that just gets translated to html fellipe_: i recommend to simply use html to call an external script
PeterThoeny, hm.. ok but I need to get timestamp from a textbox, is it possible? yes, change type="hidden" to type="text" see also http://www.w3schools.com/html/html_forms.asp PeterThoeny, let me try.. it's difficult for me.. in the form you also need a submit button: PeterThoeny, okay! let me try and pastebin for you :) see also http://www.w3.org/wiki/HTML_forms_-_the_basics PeterThoeny, http://pastebin.com/bXJxB3AX PeterThoeny, I know it's still too wrong but.. you don't need the %FORMELEMENT to call an external script PeterThoeny, the formelement I used is the one I copied from google.. there is nothing related to mail.. PeterThoeny, as I can see I cannot mix twiki stuffs within pure html code, right? possibly yes, needs to be tested look at the raw html that twiki generates PeterThoeny, ok.. so why should I use the hidden property? PeterThoeny, I need to have the text field visible to the user, in order to make him enter the timestamp... hidden: you need to supply the script some key=value stuff you do not want to show to the user please read the html form basics (the links i showed) PeterThoeny, ok.. I will ready, because I did not understand the hidden stuff.. PeterThoeny, hi again. I did not understand the "hidden: you need to supply the script some key=value stuff you do not want to show to the user" PeterThoeny, what I would not want to show to the user? if you have a form you ask some input from the user may be you need to supply some additional info to the script, but you do not want to show that to the user in that case you can use a hidden input field PeterThoeny, I made this simple code: http://pastebin.com/Vs59BeZc and I run a little script that reads $0, $1 and $2 params, and only $0 is passed, wich is the name of the script called.. PeterThoeny, it's ok about hidden field.. but it's not my case here.. there is nos additional stuff to pass to the script.. so I still don't understand how to pass param to shellscript an input field with name="foo" value="bar" results in the script being called like this: script?foo=bar study http://www.tutorialspoint.com/perl/perl_cgi.htm and http://perldoc.perl.org/CGI.html PeterThoeny, I don't know perl, but just shellscript. Does it applies to shellscript? yes PeterThoeny, hmmm, I see.. so, when I have script?foo=bar how can I read the content of the foo variable? or the bar value ? PeterThoeny, in shell script PeterThoeny, $1, $2... does not work please google for this PeterThoeny, but I don't know even the key string to google for of this question =/ PeterThoeny, "html params script"? PeterThoeny, "html get method param" ? =/