However, I was hoping to avoid writing a 2 line bat files to invoke my cygwin scripts as a scheduled task (since I'm making lots scheduled tasks).
I was hoping this would work:
Unfortunately, bash seems to be ignoring my attempts to redirect stdout and stderr.
I've tried both single and double "greater than" signs to make it write to test.log and nothing seems to work. The task runs OK: I just cannot get it to make a log file for me.
The alternative, of course, is to specify the file name of a two line bat for the SCHTASKS/CREATE command and inside that silly two line at file, call c:\cygwin\bin\bash.exe. This works, but then I have to manage these two line bat files.
I have a file contains
TASK gsnmpproxy {
CommandLine = $SMCHOME/bin/gsnmpProxy.exe
}
TASK gsnmpdbgui {
CommandLine = $SMCHOME/bin/gsnmpdbgui.exe
I would like to comment and than uncomment specific task eg TASK gsnmpproxy
Pls suggest how to do in shell script (9 Replies)
I have an task definition listing xml file that contains a list of tasks such as
<TASKLIST
<TASK definition="Completion date" id="Taskname1" Some other
<CODE name="Code12"
<Parameter pname="Dog" input="5.6" units="feet" etc /Parameter>
<Parameter... (3 Replies)
Status quo is, within a web application, which is coded completely in php (not by me, I dont know php), I have to fill out several fields, and execute it manually by clicking the "go" button in my browser, several times a day.
Thats because:
The script itself pulls data (textfiles) from a... (3 Replies)
What is the best way to schedule a task that is be executed years later? Like execute a script after 4 years.
Is cron the best method for that?
Any other option other than cron/at ? :confused: (7 Replies)
Hi.
I use an alias, "homeperm" as shorthand for curl -o. Since most of what I download via cUrl is graphic image files -- jpeg files -- I'd like to be able to change this alias to a script, or use it to invoke a function, which will not only download the file but date-stamp it using Exiv2 in... (4 Replies)
Hmmm.... I love these forums because I always get great prompt responses and I want to ask a question about running bash on windows. Is that allowed?
Now I know I can install cygwin cron and run bash that way.
Can I run bash from windows schedule task? How?
thanks
siegfried (1 Reply)
Hi
I have written a utility in shell program for which i want to add a code to display percentage of completion dynamically
My scripts runs approx about 30 to 45min , It appends exactly 2000 lines to one of the log file.
How to calculate percentage ?
I will note the total number of lines... (5 Replies)
Hi ! all
I am interested to know how to schedule some task, say delete some directory which needs root privileges, please someone suggest me other than crontab
Here is a scenario
schedule date is 25-09-2013 time 10:00 AM to 11:00 AM
delete directory log in following path ... (2 Replies)
Hello
I have a problem with use bash script in windows task.
If I use script by cygwin it's working well.
If I use it by Windows task I'm get error
Error :
ERROR 2 (HY000) at line 2: File '.\xxx.csv' not found (Errcode: 2)
Code Line :
load data local infile './xxx.csv' REPLACE into... (16 Replies)
How to run several bash commands put in bash command line without needing and requiring a script file.
Because I'm actually a windows guy and new here so for illustration is sort of :
$ bash "echo ${PATH} & echo have a nice day!"
will do output, for example:... (4 Replies)