A small program written to be read and executed by a command interpreter or another scripting language.

learn more… | top users | synonyms

0
votes
0answers
17 views

Login to Hyper-V virtual machine with Powershell

Is it possible to logon to a virtual machine on hyper-v using a powershell script? I have already created a script to shutdown, backup, start, etc. the machine. I need it to be able to logon so that ...
0
votes
1answer
44 views

PHP PDO Error in Select Statement

I am having some issues with PDO. First issue is that in my connection string, I cannot use variables defined in another file (tried include & require). It gives me an error and shows the ...
-3
votes
3answers
47 views

writing a macro to export a value

So I am trying to write a macro in Perl. So this is what I am doing: Write a shell command which supplies input arguments to the macro file. Something like: export apple= (0 or 1) The Macro file ...
0
votes
2answers
19 views

Append function output to top of created file

I have a script running in linux which is simply multiple function calls outputted into a file. I have a function which is an overview of important information That I would like to append to the top ...
0
votes
0answers
11 views

FTP batch script hangs at ftp> prompt

I'm trying to execute the following batch script to copy file from ftp to local directory. However, I'm only able to login to the ftp but can't get the rest (bold code) of the script to execute. The ...
0
votes
0answers
4 views

How to creat setting files for websphere app server automated update tools

I made a script that can be used on WebSphere DMGR (v6.1) to update an application (modified the script you can find there ...
0
votes
1answer
10 views

Dos Batch Script to copy contents of one folder into another using wildcards

I am trying to create a batch script that copies the contents of one folder into another. Ihave tried this: mkdir "c:\Jamie" cd c:\jamie_DateTimeStamp* xcopy * "c:\Jamie" for /D %%f in (c\jamie_*) ...
1
vote
1answer
17 views

make getopts error when optionstring does not start with a dash

I am writing a script that uses getopts for options that require arguments and some that do not. I want getopts to exit with an error if any switches do not start with a '-', rather than simply stop ...
-1
votes
1answer
62 views

Embedding a scripting language into my application [duplicate]

My idea is to have a text editor inside my application where users can create scripts in order to execute certain commands in my program.I am not looking to embed a scripting language into my program ...
1
vote
0answers
7 views

How to align a script after a div size for every resolution?

So i have this div containing a contact script: <div id="contactbox" style=""> <form enctype="multipart/form-data" method="post" action="http://www.response-o- matic.com/mail.php" ...
1
vote
1answer
14 views

Am I missing the target with exp_continue?

I'm trying to write an expect script that allows me to ssh into a switch, look for a certain set of software in flash, then delete it. I would like to say that if you see result "A" do action "B", and ...
0
votes
3answers
26 views

how to clear a variable which is set from command line by “set /a var1=”

In Windows batch files, I accept variable from user input by set /p var1=, after var1 is used, I don't know how to reset/clear its value. If I don't reset/clear its value, when user meets set /p ...
0
votes
1answer
12 views

how to output a MYSQL Database Backup file without saving the file first?

I have the below script which is not working as it should: The script should create a sql file for my database and output the file directly instead of saving it but instead i am getting an empty ...
0
votes
0answers
58 views

Scripting language component for Lazarus

What is the best multiplatfrom scripting language component to embed into lazarus build projects with full support of the GUI. I have tried "Pascal Script" but it has no sample code or documentation ...
-4
votes
0answers
33 views

JavaScript Redirection with value [closed]

I want to learn how to insert certain value in ID of java script i.e address of website as value and page containing that value redirect to another page if someone tries to remove that address Kindly ...

1 2 3 4 5 548
15 30 50 per page