How can I redirect and append stdout and stderr to a file when using cron? Here is my crontab file:
*/5 * * * * /dir/php /dir/process_fns.php >>& /dir/dump.txt
Cron gives me an 'unexpected character found in line' when trying to add my crontab file.
Regards,
Zach Curtis
POPULUS (8 Replies)
#!/usr/bin/perl
open(STDOUT, ">>$Textfile")
open(STDERR, ">>$Textfile")
print "program running\n";
$final = join("+", $initial,$final) #5
close (STDOUT);
close (STDERR);Hi all, above is my perl code. Notice i have captured the stdout and stderr to the same textfile. my code is expected to... (1 Reply)
I've got a c++ program that works fine on Linux, compiles on Solaris fine with g++, but will not write to a fstream correctly in a class object.
And I've run into numerous other bugs in the disk management.
Jon (4 Replies)
I have been doing this:
make xyz &> xyz.log &; tail -f xyz.log
The problem with this is that you never can ge sure when "make xyz" is done.
How can I pipe both stderr and stdout into tee so both stderr and stdout are copied both to the display and to the log file?
Thanks,
Siegfried (3 Replies)
working on a c sell script
I think I understand the concept of it, which is:
filename >> file.txt (to appaend)
or filename | tee -a file.txt (to append)
The problem is that my shell script is used with several parameters, and these commands don't seem to work with just filename. They... (2 Replies)
Hi all. I am trying to use backticks in Perl to put STDERR into a string. The code is...
$readkey_test = `perl -MTerm::ReadKey -e 1`;
print $readkey_test;
if ($readkey_test =~ m/]/)
{
print "ReadKey not installed...\n";
}
else
{
print "ReadKey installed...\n";
}
If it comes up... (3 Replies)
Can somebody explain to me why the diff output is not going to stderr?
Yet when I issue a diff from the command line the return code is -ne 1.
I am guessing diff always writes to stdout???
Is there away I can force the difff to write to stderr USING THE CURRENT
template. If possible, I... (5 Replies)
Hi all,
can someone help me with the next redirection?
i want to redirect the stdout+stderr of a command to the same file (this i can do by prog &> file)
but in addition i want to redirect only the stderr to a different file.
how can i do this please? (in BASH)
thanks. (4 Replies)
Hello,
As stated in the title, I do some hacked parallel processing by running multiple instances of bash scripts, each in their own subshell. The code looks like this,
# launch one batch-train script in background for each value in fold group list
for FOLD_GROUP in "${FOLD_GROUP_LIST}"
do
... (5 Replies)
(Apologies for any typos.)
OSX 10.12.3 AND Windows 10.
This is for the serious Python experts on at least 3.5.x and above...
In script format sys.stdout.write() AND sys.stderr.write() seems to work correctly.
Have I found a serious bug in the interactive sys.stdout.write() AND... (2 Replies)
Discussion started by: wisecracker
2 Replies
LEARN ABOUT DEBIAN
gammu-smsd-inject
GAMMU-SMSD-INJECT(1) Gammu GAMMU-SMSD-INJECT(1)NAME
gammu-smsd-inject - Inject messages into queue of SMS daemon for Gammu
SYNOPSIS
gammu-smsd-inject [OPTION]... MESSAGETYPE RECIPIENT [MESSAGE_PARAMETER]...
DESCRIPTION
This manual page documents briefly the gammu-smsd-inject command.
gammu-smsd-inject is a program that enqueues message in Gammu SMS Daemon, which will be later sent by the daemon using connected GSM modem.
Support for this program depends on features available in currently used SMSD service backend, however currently it is supported by all of
them.
Program accepts following options (please note that long options might be not accepted on some platforms):
-h, --help
Shows help.
-v, --version
Shows version information and compiled in features.
-c, --config=file
Configuration file to use, default is /etc/gammu-smsdrc, on Windows there is no default and configuration file path has to be always
specified.
-l, --use-log
Use logging as configured in config file.
-L, --no-use-log
Do not use logging as configured in config file (default).
For description of message types and their parameters, please check documentation for gammu savesms.
EXAMPLES
To check it out, you need to have configuration file for SMSD, see gammu-smsdrc for more details about it.
Inject text message up to standard 160 chars:
echo "All your base are belong to us" | gammu-smsd-inject TEXT 123456
or
gammu-smsd-inject TEXT 123456 -text "All your base are belong to us"
Inject long text message:
echo "All your base are belong to us" | gammu-smsd-inject TEXT 123456 -len 400
or
gammu-smsd-inject TEXT 123456 -len 400 -text "All your base are belong to us"
or
gammu-smsd-inject EMS 123456 -text "All your base are belong to us"
Inject some funky message with predefined sound and animation from 2 bitmaps:
gammu-smsd-inject EMS 123456 -text "Greetings" -defsound 1 -text "from Gammu" -tone10 axelf.txt -animation 2 file1.bmp file2.bmp
Inject protected message with ringtone:
gammu-smsd-inject EMS 123456 -protected 2 -variablebitmaplong ala.bmp -toneSElong axelf.txt -toneSE ring.txt
AUTHOR
Michal iha <michal@cihar.com>
COPYRIGHT
2009-2012, Michal iha <michal@cihar.com>
1.31.90 February 24, 2012 GAMMU-SMSD-INJECT(1)