[Newbie question] Hoe heet deze taal???

Pagina: 1
Acties:

  • G-RaX
  • Registratie: Mei 2000
  • Laatst online: 05-04 17:44

G-RaX

Unofficial TopCat

Topicstarter
Beste tweakers,

Het klinkt als een stomme vraag, maar ik ben zelf nog niet compleet thuis in het programmeren. Nu ben ik al behoorlijk ver met ASP en dergelijke, maar nu was ik laatst bezig met het programmeren van een webpagina, en toen kwam ik dit tegen, en ik weet niet welke taal het is, zodra ik dat weet, dan kan ik weer verder.

<!--#exec cmd='
if checkproc /usr/sbin/atalkd ; then
echo "blablabla"
else
echo "blablaniet"
'-->

Onder welke taal valt dit, want volgens mij is het geen PHP en zeker geen ASP, is het soms PERL???

Alvast bedankt voor de hulp!

Verwijderd

Dit is SSI (Server Side Include) Zeer simpele code die je in je webpagina kunt droppen om bv. de datum te printen of om bepaalde commando's uit te voeren. :+

  • elnino
  • Registratie: Augustus 2001
  • Laatst online: 03-09 05:13
edit: MisterJava was me voor... :(

Verwijderd

G-RaX: Hoe heet deze taal???
Waarschijnlijk Bash. Wat je ziet is een sheelscript dat door je pagina aangeroepen wordt met SSI.

  • G-RaX
  • Registratie: Mei 2000
  • Laatst online: 05-04 17:44

G-RaX

Unofficial TopCat

Topicstarter
Thnx, mensen, nu kan ik tenminste verder!

:)

  • D2k
  • Registratie: Januari 2001
  • Laatst online: 31-08 10:19

D2k

Op maandag 29 oktober 2001 18:15 schreef Arien het volgende:

[..]

Waarschijnlijk Bash. Wat je ziet is een sheelscript dat door je pagina aangeroepen wordt met SSI.
sheel==shell :)

Doet iets met Cloud (MS/IBM)


  • Crazy D
  • Registratie: Augustus 2000
  • Laatst online: 17-09 08:12

Crazy D

I think we should take a look.

Om het nog even compleet te maken...

Uit MSDN:
#exec
The #exec directive instructs the Web server to run the specified application or shell command and send the output (standard output or ISAPI WriteClient data) to the client browser. You must surround a directive with HTML comment delimiters.

This directive can be used only in HTML pages; it cannot be used in ASP pages.

Syntax
<!-- #exec CommandType = CommandDescription -->



Parameters
CommandType
Specifies the type of command. The command type can be one of the following: Command Type Meaning
CGI Runs an application, such as a CGI script, ASP application, or ISAPI application. The CommandDescription parameter is a string that contains the virtual path of the application, followed by a question mark (?) and any parameters passed to the application. Parameters are separated by plus signs (+). Because running an ISAPI application is only part of processing the SSI document, an ISAPI application is restricted as follows:
Any application attempting to send a URL or redirect through ServerSupportFunction will cause a message to be placed in the HTML stream, but the send-redirect will not be performed.

The SSI interpreter (Ssinc.dll) will wait indefinitely for applications returning HSE_STATUS_PENDING unless ServerSupportFunction is called to finish the session.

CMD Runs a shell command. The CommandDescription parameter is a string that contains the full, physical path of the shell program, followed by any command-line parameters separated by spaces. If the full path is not specified, the Web server searches the system path. This directive is disabled by default because it poses a security risk to your Web site; for example, a user could run the format command to erase your hard disk. To enable it, add the SSIEnableCmdDirective entry to the registry and set the value to TRUE. For general information on using the registry, see Registry.

Exact expert nodig?


Verwijderd

Op maandag 29 oktober 2001 18:15 schreef Arien het volgende:

[..]

Waarschijnlijk Bash. Wat je ziet is een sheelscript dat door je pagina aangeroepen wordt met SSI.
Bash = Bourne Again Shell, opvolger van de Bourne Shell,
dus shell != Bash!

Verwijderd

joska: Bash = Bourne Again Shell, opvolger van de Bourne Shell, dus shell != Bash!
Maar Bash elt shell, en gezien de populariteit van de Bash shell dus "waarschijnlijk Bash" zoals ik al zei.

Verwijderd

Op dinsdag 30 oktober 2001 10:32 schreef Arien het volgende:

[..]

Maar Bash elt shell, en gezien de populariteit van de Bash shell dus "waarschijnlijk Bash" zoals ik al zei.
Misschien heb je gelijk, maar ik dacht dat csh nog wat populairder was dan bash, of niet?

Verwijderd

joska: Misschien heb je gelijk, maar ik dacht dat csh nog wat populairder was dan bash, of niet?
Nee, bash shells zijn populairder dan c shells door problemen met eerdere csh's (die allang verholpen zijn, maar de link is blijven hangen).

Verwijderd

Paar kleine voorbeeldtjes:

http://www.mgfun.com/pages/eng/prog_ssi.shtml

Moet het later nog een keer af maken :) maja heb geen tijd

Note: Niet alles getest !!!

  • dusty
  • Registratie: Mei 2000
  • Laatst online: 21-02 00:06

dusty

Celebrate Life!

Op dinsdag 30 oktober 2001 10:46 schreef Arien het volgende:
Nee, bash shells zijn populairder dan c shells door problemen met eerdere csh's (die allang verholpen zijn, maar de link is blijven hangen).
Klopt, ik ken meer machines die standaard bash draaien dan csh. Alhoewel op veel van de machines beide staat geinstalleerd :) (alleen bash is vaak de standaard die gebruikt wordt)

Back In Black!
"Je moet haar alleen aan de ketting leggen" - MueR

Pagina: 1