Questions tagged as 'scripting'

2
answers

Compile string as code

How can I compile a string inside C #? Example: Console.WriteLine(\"Hello World\"); . As if it were a eval of JavaScript? I had a project to load a code into a text file or something else.     
asked by 10.05.2014 / 02:10
5
answers

How to use another language that does not JavaScript in the browser?

In spite of the huge number of programming languages in various environments (desktop, server, mobile devices), the browser continues to support one and only one language: JavaScript. The reason for this escapes me: even though there is a comp...
asked by 08.02.2014 / 08:43
1
answer

How to "call" a function from a Lua table in C ++

I'm trying to "call" a function from a table written in Lua . The problem is that I am not able to pass three arguments to this function. When I pass the arguments, it is as if the Lua skips the first argument and continue...
asked by 26.08.2014 / 20:20
1
answer

Problem with 'echo -e'

I'm starting to learn shell script and am doing some simple scripts to train. The script below tests whether anyone running the script is logged in as root. # !/bin/bash # # This script test if you are the superuser if [ "$(id -u)" = "0" ];...
asked by 14.08.2014 / 01:45
2
answers

Problem with Syntax IF Shell Script

I have the following code: RESPOSTA=$(asterisk -rx "sip show peers" |grep 4003 |awk -F" " '{print $6}') if[["$RESPOSTA" == "OK"]];then echo $RESPOSTA elif[["$RESPOSTA" == "Unmonitored"]];then if[["$RESPOSTA" == "(Unspecified)"]]; then cp /...
asked by 05.08.2014 / 16:55
2
answers

Compile string as code

How can I compile a string inside C #? Example: Console.WriteLine(\"Hello World\"); . As if it were a eval of JavaScript? I had a project to load a code into a text file or something else.     
asked by 10.05.2014 / 02:10
1
answer

Script language for JVM and DVM

I intend to use a script language coupled with Java SE applications, my fear is to develop something and then later have a hard time porting it to the Android platform. I'm not a professional in the area, but I know the importance of portability...
asked by 08.05.2016 / 05:52
2
answers

execute script with administrator permission

I have the following code snippet: foreach($File in $(Get-ChildItem -Path $FromPath)){ $ObjFolder.CopyHere($File.fullname, $CopyOptions); } It copies the files to the windows folder, however the users are not allowed to do thi...
asked by 18.11.2014 / 11:56
0
answers

Set boot script order [closed]

I've been using So Linux Ubuntu since version 7.04, but I've used other distros before, and I realize that with each release something changes inexplicably, things that often get in the way. My problem is the following, I have some servers with...
asked by 26.08.2014 / 19:52
1
answer

Shell script detect APs and Mac Address

My goal is to develop a script in a Linux (Kali Linux) environment that automates certain tasks such as running, detect Access Points showing me the signal strength and Mac Address as well as the clients that are connected. I do not care...
asked by 27.10.2017 / 02:32