Hi. I am just getting into scripting. I came into a situation where I need to go through several hundred files on a Linux system and find a couple specific bits of information from within each file. All the files have pretty much identical content except for a view data values on the same two lines... (4 Replies)
Hello,
Running AIX 6.1, AIX machine is HACMP node.
Recently I set up ntp service. Started xntpd by hand - everythig is OK. Configured xntpd to start after reboot and rebooted the machine. After reboot checked xntpd:
# lssrc -a|grep ntp
xntpd tcpip ... (5 Replies)
Hi,
I am using inotifywait to monitor a directory where files are being transferred into.
I want inotifywait to tell me when a file has been completely transferred not just part of it.
I tried "create", "close" and "close_write" but it seems that inotifywait always gets triggered even if the... (4 Replies)
Is there a way to get my script to only trigger when a .ppt is created?
#!/bin/bash
while inotifywait -e create /ticker/powerpointshare;
do
sleep 30;
sudo chmod -R 777 /ticker/powerpointshare/*.*;
sleep 15;
sudo reboot;
done
I'm not sure if this is even possible... (0 Replies)
Hi,
I want to monitor any new file to be created in some of the directory using inotifywait tool but this is not available in Redhat 5.6.
Could you please let me know how to achieve (monitoring of file) without using inotifywait too? Because i dnt want to install this tool due to some reason.... (1 Reply)
I'm trying to improve a script that I have running on a Ubuntu desktop that basically runs a powerpoint presentaions with announcements to TV's in diffrent parts of our building. My current script uses WINE to execute powerpoint viewer.
The scripts that I currently use relies on inotifywait's... (1 Reply)
I am using blow script :--
#!/bin/bash
FIND=$(ps -elf | grep "snmp_trap.sh" | grep -v grep) #check snmp_trap.sh is running or not
if
then
# echo "process found"
exit 0;
else
echo "process not found"
exec /home/Ketan_r /snmp_trap.sh 2>&1 & disown -h ... (1 Reply)
So, this is weird... I'm running this command:
iotop -o -P -k -bt -d 5
I'd like to save the output relelvant to rsyslogd to a file, so I do this:
iotop -o -P -k -bt -d 5 | grep rsyslogd >> /var/log/rsyslogd
Nothing is written to the file! I can write the full output to the file:
... (2 Replies)
It looks like if matching and deleting the last line confuses 'sed' so it does not recognize '$' address. Consider:
sed -e '/^3/d' -e '$ a text'
supposed to delete a line starting with '3' and then append 'text' after the last line of input. But, if it is the last line of input which starts... (2 Replies)
Hi all,
First post here. Working on Solaris 10, on a Sun t4-4, need to change RX queue depth(ethernet, not HBA) and was wondering if i could get by with just restarting the network or if i should just bounce the whole shebang.
Apologies if i missed a similar thread. if there is one, please... (2 Replies)
Discussion started by: caspnx
2 Replies
LEARN ABOUT NETBSD
mmcformat
MMCFORMAT(8) BSD System Manager's Manual MMCFORMAT(8)NAME
mmcformat -- format optical media
SYNOPSIS
mmcformat [-BDFGHhIMOpRrSsw] [-b blockingnr] [-c cert-num] special
DESCRIPTION
The mmcformat utility formats optical media conforming to the MMC standard. This includes CD, DVD, and Blu-Ray (BD) media.
The options are as follows:
-B Blank media when possible before formatting it.
-b blockingnr Explicitly select packet size in sectors (for CD-RW only). It is not recommended to change this from its default of 32.
-c cert-num Certify media for DVD-RAM / DV-RE. The argument cert-num specifies:
0 no certification
1 full certification
2 quick certification
-D Debug mode. Print all SCSI/ATAPI command errors.
-F Format media.
-G Grow last CD-RW/DVD-RW session.
-H Show help and print formatting choices for the inserted media.
-h Show help and print formatting choices for the inserted media.
-I Show help and print formatting choices for the inserted media.
-M Select MRW (Mount Rainier) error correcting background format.
-O Old style CD-RW formatting; recommended for CD-RW.
-p Explicitly set packet format.
-R Restart previously stopped MCD-MRW or DVD+RW background format.
-r Recompile defect list for DVD-RAM.
-S Grow spare space DVD-RAM / BD-RE.
-s Format DVD+MRW / BD-RE with extra spare space.
-w Wait until completion of background format.
NOTES
Due to the enormous varieties in optical media, mmcformat is made as generic as possible. This can result in confusion.
EXAMPLES
mmcformat -B -O /dev/rcd0d
Blanks and then formats a CD-RW disc using the ``old style'' format command. It is recommended to use this ``old style'' command unless your
drive reports that it's not supported; in that case, resort to the default -F. Note that a CD-RW disc can be reformatted without being
blanked. Blanking switches between sequential and fixed packet writing by erasing the disc. This can also help to revive old discs.
mmcformat -F -M /dev/rcd0d
Format a CD-RW or a DVD+RW to use MRW (Mount Rainier). This format tries to hide media flaws as much as possible by relocation.
SEE ALSO scsictl(8)HISTORY
The mmcformat command first appeared in NetBSD 5.0.
AUTHORS
Reinoud Zandijk <reinoud@NetBSD.org>
BUGS
mmcformat could be merged with scsictl(8) but that tool is very hard disk oriented.
BSD May 9, 2008 BSD