area / CryptoSwitcher

A script to switch between mining Bitcoin and any of the other cryptocoins as profitability dictates.
94 stars 45 forks source link

Sending input value to script #11

Closed vias79 closed 11 years ago

vias79 commented 11 years ago

Would be nice if the CryptoSwitcher could be able to send a value when running a script:

For instance:

DGCscript = "/home/username/switchpool.php 3"

CatmanIX commented 11 years ago

You can just point DGCscript at a .bat or .sh file that would do all that.

salfter commented 11 years ago

You can just point DGCscript at a .bat or .sh file that would do all that.

This. What value would be passed from CryptoSwitcher to your script? Coin selection is handled by calling a different script. Pool selection for a given coin is outside CryptoSwitcher's purview and is best left to your miner. If you're trying to handle coin switching from a single script (not sure why you'd do this), you can use a bunch of one-line scripts to pass whatever arguments your main script needs for a given coin.