How to overwrite every time a particular portion of a file?
---------- Post updated at 02:16 PM ---------- Previous update was at 02:07 PM ----------
I have a file whose contents are something like:
Output of "apachectl fullstatus" command:
---------------------------------------------... (3 Replies)
Hi all,
I have configured a user and provided him the priviledge to vi a file owned by root account. The settings are as below
$ id
uid=1661(conuser) gid=6615(staff)
$ sudo -l
(root) NOPASSWD: /usr/bin/vi /opt/DBconserver/etc/conserver.cf
I just realised that when the user execute... (5 Replies)
Long story short, there was some sort of corruption with my ide and the script I was working on has been over written with nothing (the file is blank now). The IDE doesn't store a back up from what I know (I'm using notepadd++ in wine lol I know I know I'm addictted to the nppftp sidebar and geany... (1 Reply)
I have loads of files in different directories which I do miner changed on them and till now I have to create totally new directories for them, specially as I deal with a whole directory at once :wall::wall::wall::wall:
it creates such as mess really
e.g.
FILES="F1/*"
for X in $FILES
do... (2 Replies)
Hi
Iam running below script on one text file.
usr/xpg4/bin/awk 'BEGIN {print "IP HOST_NAME SUB "}
/IP IS/ {IP=$3}
/local/ {HOST=$1}
/PPPoE/ {SUB=$3 ;print IP, HOST, SUB}
' /Scripts/sub_report_$FILE>/Scripts/sub_final_report_.txt
the output is coming as below
IPHOST_NAME SUB ... (16 Replies)
Hello,
If i run the following script from the cmdline it works just fine however if i run it via root cronjob it doesn't write to the file at all. It is chmod 777 now so shouldnt be any right issues.
Shellscript looks like this:
/usr/bin/top -b -n 1 -u nagios >> /var/log/test.log
Cronjob... (7 Replies)
I have a script, which runs through cronjob every night 9 PM. It is supposed to do following tasks --
1- Connect to ftp.testsite.com via user redtest
2- Fetch file red_bill.txt to my local server, where my script is residing.
3- Rename red_bill.txt to red_bill.V01.txt everyday on sftp server.... (4 Replies)
Hi, An application is transferring a file to linux system with same file name. As file is transferring with same name always file will be overwritten. In this case we want to know what times file was overwirtten like below.
Modify: 2014-05-12 00:52:01.000000000
Modify: 2014-05-12... (2 Replies)
hi
i have a file as in follwoing:
cat apple.txt
Apple is a fruit
But this fruit is costly
Now I used the sed command and i see output as in following
# sed 's/fruit/healthy &/' fruit.txt
Apple is a healthy fruit
But this healthy fruit is costly
#
sed works fine here. But... (2 Replies)
My first post, so don't kill me :)
Say i open some textfile with some example like this.
on the table are handy, bread and wine
Now i know exactly what is in and i want to separate and sorted it in terminal to an existing file with another 2 existing lines in like this:
table
plane ... (3 Replies)
Discussion started by: schwatter
3 Replies
LEARN ABOUT DEBIAN
djcelerymon
DJCELERYMON(1) General Commands Manual DJCELERYMON(1)NAME
djcelerymon -- Django Admin Monitor
SYNOPSIS
djcelerymon
DESCRIPTION
This manual page documents briefly the djcelerymon command.
This manual page was written for the Debian distribution because the original program does not have a manual page.
djcelerymon is a program that can be used by non-Django users, and it runs both a web server and a snapshot camera by starting a Django
Admin instance and celerycam in the same process.
OPTIONS
This program follows the usual GNU command line syntax, with long options starting with two dashes (`-'). A summary of options is included
below.
-v VERBOSITY --verbosity=VERBOSITY
Verbosity level; 0=minimal output, 1=normal output,2=all output.
--settings=SETTINGS
The Python path to a settings module, e.g. "myproject.settings.main". If this isn't provided, the DJANGO_SETTINGS_MODULE envi-
ronment variable will be used.
--pythonpath=PYTHONPATH
A directory to add to the Python path, e.g. "/home/djangoprojects/myproject".
--traceback
Print traceback on exception.
--noreload
Tells Django to NOT use the auto-reloader.
--adminmedia=ADMIN_MEDIA_PATH
Specifies the directory from which to serve admin media.
-d--dump
Dump events to stdout.
-c CAMERA --camera=CAMERA
Camera class to take event snapshots with.
-F--frequency=FREQUENCY--freq=FREQUENCY
Recording: Snapshot frequency.
-r MAXRATE --maxrate=MAXRATE
Recording: Shutter rate limit (e.g. 10/m).
-l LOGLEVEL --loglevel=LOGLEVEL
Loglevel. Default is WARNING.
-f LOGFILE --logfile=LOGFILE
Log file. Default is <stderr>.
--version
Show program's version number and exit.
-h--help
Show help message and exit.
SEE ALSO
celerycam (1).
AUTHOR
This manual page was written by fladi FladischerMichael@fladi.at for the Debian system (and may be used by others). Permission is granted
to copy, distribute and/or modify this document under the terms of the GNU General Public License, Version 2 any later version published by
the Free Software Foundation.
On Debian systems, the complete text of the GNU General Public License can be found in /usr/share/common-licenses/GPL.
DJCELERYMON(1)