Scripting is a form of programming generally characterized by low formality, loose typing, and no requirement for explicit compilation. There are numerous scripting languages, and these are used in a wide variety of scenarios - command-line applications, GUIs, server-side applications, extension ...
0
votes
0answers
3 views
rdiff-backup errors: script keeps quitting with error
Ive recently been introduced to bash scripting... So, Ive used my advanced theft course to throw together the attached script. it runs... and exits with "/xxx/ not mounted. You are not root! I have ...
0
votes
0answers
11 views
Running script on a remote server in bash working on 1 server, not on the other
When I am running this script on 2 servers in hostnames, it succeeds on one of them, but not on the other.
The log output is pretty ugly, so I won't post all of it. Here is part of the bash_history, ...
0
votes
1answer
13 views
How to capture exit code from a cmdlet in a powershell script
I'm extremely new to powershell scripting and I'm having a hell of a time trying to capture whether something simply failed or succeeded. I have a simple example:
test1.ps1
get-psdrive -name ds | ...
1
vote
0answers
20 views
Within a VLC lua interface script, how does one invoke the httpd service?
I've finally managed to figure out how to invoke the VLC executable so that it attempts to run an interface, and debug messages show up in the output when they're included within the script itself.
...
1
vote
2answers
39 views
bash scripting, how to parse string separated with :
I have lines that look like these
value: "15"
value: "20"
value: "3"
I am getting this as input pipe after grepping
... | grep value:
What I need is a simple bash script that takes this pipe ...
1
vote
2answers
18 views
Finding max lines in a file while printing file name and lines seperately?
So I keep messing this up and I think where I was going wrong was that the code i'm writing needs to return only the file name and number of lines from an argument.
So using wc I need to get ...
0
votes
1answer
12 views
VBScript Admin CMD Command Executed Remotely
Trying to execute a simple dns flush remotely from a machine, but for one reason or the other - I need to run the cmd as admin. The cmd runs fine under the account physically in person, but you need ...
0
votes
0answers
7 views
Trying to assign ip based on mac address
We have been trying to assign ip address to machines based on their mac addresses as we have ip - mac binding . We need this on our linux desktops as we cannot afford for a dhcp server due to some ...
0
votes
0answers
32 views
How can I get Autohotkey (Autoit) to press a differnet button with a button input?
~LALT:: Send {DELETE DOWN}
~LALT UP:: Send {DELETE UP}
~NUMPAD0:: Send {DELETE DOWN}
~NUMPAD0 UP:: Send {DELETE UP}
There is my current code. I want to make it so that when I'm holding down either ...
-2
votes
1answer
19 views
Script to restart services on a remote server
I'm looking for a .bat script that will open up a cmd promt perhaps using psexec that will prompt the user for a server name which when inputted wil then ask for a username and password . Once the ...
2
votes
5answers
59 views
File with the most lines in a directory NOT bytes
I'm trying to to wc -l an entire directory and then display the filename in an echo with the number of lines.
To add to my frustration, the directory has to come from a passed argument. So without ...
0
votes
1answer
17 views
How to make Update Package Of SQL Scripts in C#
I'm trying to make an update package (.exe or .cab or ...)
I want my client to be able to use it in a simple way to execute my scripts on their DB
I know how to run scripts in C# but I want a way to ...
0
votes
2answers
26 views
Erroring out for passed argument less than 1, what am I doing?
I'm trying to get a script to echo a message when a number like -9 is entered.
The arguments have to be passed from the command line
This is what I have now.
#!/bin/bash
#Assign1part1
if (( $# != ...
0
votes
4answers
46 views
Shell Script for counting down passed argument
So I was working on a project tonight and assumed based on my poor understanding that the requirement was to create a script to take a number and count down to 1 with commas on the same line.
A few ...
0
votes
5answers
45 views
Generating a comma-separated sequence of numbers based on input in Bash
I've found more than few things on here to help me as I'm learning to code in Bash and they all come close but not quite.
I need to take an input of a positive integer and print out on a single line ...