Tag Info

Hot answers tagged

4

When starting a script (as a command), it looks at the hash-bang (#!) to know what to use to start the script. In your script, I'm betting it starts with #!/usr/bin/python or similar. When you start it as ./script.py, it reads that first line and executes /usr/bin/python ./script.py secretly. If you prepend it by using bash ./script.py, it expects the ...


1

The "hashbang" as it is known is only useful when it appears at the beginning of a file. When a file is executed from a *nix shell that starts with those two bytes, the following pathname is called to interpret the remainder of the file. This allows interpreted scripts to be treated on the same level as compiled binary executables. The shell passes the ...


1

Using net use S: \\D-DWSQL01\Share\load Apparently allowed the schedule task to see the drive normally.


1

I'm most fluent in Bash, but I'm sure you could do the same thing in Power Shell. I'm assuming that you are going to convert to .jpg format and store all the files in a ./output/ directory. My script would look like this: j=0; for i in `find . -type f \( -iname *.jpg -o -iname *.jpeg -o -iname *.png -o -iname *.gif -o -iname *.bmp \)` do j=$(($j+1)) ...



Only top voted, non community-wiki answers of a minimum length are eligible