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)
Discussion started by: abdulbadii
4 Replies
LEARN ABOUT CENTOS
abrt-retrace-client
ABRT-RETRACE-CLIEN(1) ABRT Manual ABRT-RETRACE-CLIEN(1)NAME
abrt-retrace-client - Handles the communication with Retrace server.
SYNOPSIS
abrt-retrace-client <operation> [options]
DESCRIPTION
This tool is able to communicate with Retrace server: create a new task, ask about task's status, download log or backtrace of a finished
task.
Integration with libreport events
abrt-retrace-client can be used as an analyzer for application crashes which dump core.
Example usage in report_event.conf:
EVENT=analyze analyzer=CCpp
abrt-retrace-client
OPERATIONS
create
Creates a new task. Prints task ID and password to stdout. Either -d or -c is required.
status
Prints task's status to stdout. Both -t and -p are required.
log
Prints finished task's log to stdout. Both -t and -p are required.
backtrace
Print finished task's backtrace to stdout. Both -t and -p are required.
batch
Runs all operations in one step: creates a new task, periodically asks for status (the period is specified by --status-delay option)
and downloads the result when finished. If the task was successful backtrace file is saved, otherwise log is printed to stdout. Either
-c or -d is required.
OPTIONS -v, --verbose
be verbose
-s, --syslog
log to syslog
-k, --insecure
allow insecure connection to retrace server
--url URL
retrace server URL
--headers
(debug) show received HTTP headers
-d, --dir DIR
read data from ABRT problem directory
-c, --core COREDUMP
read data from coredump
-l, --status-delay
delay for polling operations (seconds)
--no-unlink
(debug) do not delete temporary archive created in /tmp
-t, --task ID
ID of the task on server
-p, --password PWD
password of the task on server
AUTHORS
o ABRT team
abrt 2.1.11 06/18/2014 ABRT-RETRACE-CLIEN(1)