1
vote
2answers
228 views

Filling up the hard drive until certain amount of space is left?

I'm doing some testing of a product on Apple and Android devices. I'd like a script that will fill up the devices hard drive until 100KB space is left on the drive it's runs against to. Also in linux ...
0
votes
2answers
175 views

Batch file to create many files with special characters

Essential info: I have a file "DB_OUTPUT.TXT" with 304 lines that I need to turn into 304 files (one per line). Each line contains many special characters and may be up to tens of thousands of ...
1
vote
1answer
1k views

Batch file equivalent in Linux

I have a few basic commands that I need to run on a Red Hat Linux 5 Virtual Machine with GNOME to start a couple servers. Example cd /home/user/scripts sh runTHISthing.sh pub cd /home/user/logs ...
1
vote
2answers
351 views

Ubuntu terminal characters required in Makefiles

So the Linux From Scratch Hint recommends that before you even attempt LFS you should be able to build and install emacs from scratch. I am trying to do this. The INSTALL doc claims it's fairly ...
1
vote
2answers
262 views

overwriting specific files in a directory tree recursively

I would like to overwrite files in a directory tree, recursively. The ones I would like to overwrite match the filename "x_alpha*.png" and have a size exactly 456 bytes. Is there any way to search ...
2
votes
1answer
6k views

How to excute commands over SSH in a batch file?

I'm looking to, all in the course of one batch file: ssh into a remote computer execute commands (per the batch file) on the remote host. What options do I need to add to the ssh invocation so ...
0
votes
1answer
3k views

Can I put comments in a sftp batch file script?

I'm using sftp batch scripts to automate some file transfers. Is there a syntax for putting comments in the batch files? For example: sftp -b mybatchscript.sftp nick@server Where ...