This is the terrible error handler.
It emergency-exits on built-in commands.
For the external command rm you can try to redirect stderr (and stdout) with
Last edited by MadeInGermany; 09-24-2014 at 05:44 PM..
Reason: typo
This User Gave Thanks to MadeInGermany For This Post:
I am getting the following upon cat a file which is not present in directory.
"cat: cannot open test1.txt"
I need to process files and I want that this message should be suppressed. thx (5 Replies)
I'm creating a bsh shell to unzip a file from one directory into another. The directory that holds the zip files has zip files constantly being added to it, so I am testing it before it does the unzip and more.
Right now my code looks like this:
unzip -tq $ZIP_PATH/$ZIP_NAME >/dev/null
if ... (5 Replies)
Hi All
this is a simple script
#! /bin/bash
FileCnt=`ls -lrt $DIR/* | wc -l`
echo $FileCnt
how could i escape the error msg if there are no files in $DIR
ls: /home/sayantan/test/files/cnt/*: No such file or directory
0
Looking forward for a quick reply
Regards, Newbie... (3 Replies)
HI ,
I am tryin to copying multiple files from some dir. If the files are not present. It should not throw error in the screen. HOw to do that . Please help (4 Replies)
I have a file containing data in multiple columns. The colums are seperated by pipe (|). I need to extract information as below:
myfile_20130929_781;10;100.00
where myfile.txt is the file name. 10 is the number of records in the file starting with 120 and 100.00 is the sum of 26th field of... (16 Replies)
Discussion started by: angshuman
16 Replies
LEARN ABOUT DEBIAN
solarpowerlog
SOLARPOWERLOG(1)SOLARPOWERLOG(1)NAME
solarpowerlog - queries data from a photovoltaic inverter
SYNOPSIS
solarpowerlog [options]
DESCRIPTION
The program trackd and logd data from photovoltaic inverters, collect power data and store them.
OPTIONS
The program follow the usual GNU command line syntax, with long options starting with two dashes (`-'). A summary of options is included
below.
-h, --help
Show summary of options.
-v, --version
Show version of program.
-b, --background
Runs the program in the background, detaching it from the console.
-c, --conf filename
The configuration to be used. Default is solarpowerlog.conf, looked for in the current directory.
--dumpcfg
Dump configuration structure, then exit
--chdir arg
working directory for daemon (only used when running as a daemon). Defaults to /
--stdout arg
redirect stdout to this file (only used when running as a daemon). Defaults to /dev/null
--stderr arg
redirect stderr to this file (only used when running as a daemon). Defaults to /dev/null
--pidfile arg
create a pidfile after the daemon has been started. (only used when running as a daemon). Default: no pid file
SEE ALSO
http://sourceforge.net/apps/mediawiki/solarpowerlog/index.php
June 16, 2009 SOLARPOWERLOG(1)