New answers tagged script
0
votes
How to do division and rounding within the string?
Command SET /A can perform division and always rounds down (floor()).
set /A calculation=10 / 3
echo %calculation%
REM will print "3"
You can also use variables in the ...
0
votes
LDAP manipulation - Powershell or any other langage?
Powershell probably still works best, but you would use the .net [System.DirectoryServices] class methods. If the LDAP server is similar enough to active directory, you can do a simple LDAP bind+query ...
2
votes
How can I run a bash script in zsh?
The literal tilde in your PATH is expanded by Bash, but not by Zsh. In general you shouldn't use ~ inside PATH. Use the full path.
In an assignment tilde-prefixes can be used at the beginning of the ...
2
votes
How can I run a bash script in zsh?
You need not only to create the script, but also to make it executable. Then, when you run it, the #! line will instruct the system where to find an interpreter for the code.
Worked example:
cat >...
0
votes
Get local IP address/addresses on Arch Linux
If you plan to use ip, this is an example on how to get the correct ip address from this ip address show output:
$ ip a
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group ...
0
votes
How do I set Task Scheduler to execute Windows Service at __:00/15/30/45 am/pm from start up?
Windows services can have a delayed startup set via the Services applet,
but this by default only delays the execution by 2 minutes.
You may set this delay to 15 minutes, with the disadvantage that
...
1
vote
WinSCPSession error in parameter name 'HostName'. How it fix?
The parameters you are using should go to New-WinSCPSessionOption, not New-WinSCPSession.
Like this:
$sessionOption = New-WinSCPSessionOption -HostName $ftpServer -PortNumber $ftpPort -Credential (New-...
Top 50 recent answers are included
Related Tags
script × 2725linux × 517
bash × 516
windows × 497
powershell × 313
batch × 249
command-line × 241
shell × 218
windows-7 × 171
batch-file × 149
windows-10 × 138
shell-script × 133
automation × 130
macos × 118
autohotkey × 92
ubuntu × 82
unix × 81
boot × 63
cmd.exe × 62
terminal × 57
bash-scripting × 57
networking × 56
vbscript × 56
ssh × 49
python × 43