Hi folks,
I have the following template file:
application.filePath.core = /core-RIGHTV/Html/
application.filePath.xbip = /xbip-RIGHTV/Html/
translator.rootContext = /translator_<schame_name>/
I need to substitute the string in the third line "<schema_name>" with $SCHEMA_NAME
I ran the... (4 Replies)
Please Help... I am trying to manipulte the following line
Before :
<user:Account_Password>002786</user:Account_Password>
the password is the "variable", i need to delete / omit the password in the file, (it occurs several thousand times)
so the tag line looks like
After:... (4 Replies)
Hi,
I am trying to search a string from a text file which is in between "" (Double Quotes) (Eg: "Unix"), and replace it with a | where ever it is appearing in the text file and save the file.
Please help me.
-kkmdv (6 Replies)
Hi,
I have line in input file as below:
3G_CENTRAL;INDONESIA_(M)_TELKOMSEL;SPECIAL_WORLD_GRP_7_FA_2_TELKOMSEL
My expected output for line in the file must be :
"1-Radon1-cMOC_deg"|"LDIndex"|"3G_CENTRAL|INDONESIA_(M)_TELKOMSEL"|LAST|"SPECIAL_WORLD_GRP_7_FA_2_TELKOMSEL"
Can someone... (7 Replies)
Hello everyone
Sorry I have to add another sed question. I am searching a log file and need only the first 2 occurances of text which comes after (note the space) "string " and before a ",". I have tried
sed -n 's/.*string \(*\),.*/\1/p' filewith some, but limited success. This gives out all... (10 Replies)
logs:
"/home/abc/public_html/index.php"
"/home/abc/public_html/index.php"
"/home/xyz/public_html/index.php"
"/home/xyz/public_html/index.php"
"/home/xyz/public_html/index.php"
how to use "cut" or "awk" or "sed" to get the following result:
abc
abc
xyz
xyz
xyz (8 Replies)
Hello.
Following recommendations for one of my threads, this is working perfectly :
#!/bin/bash
CNT=$( grep -c -e "some text 1" -e "some text 2" -e "some text 3" "/tmp/log_file.txt" )
Now I need a grep success for some thing like :
#!/bin/bash
CNT=$( grep -c -e "some text_1... (4 Replies)
Dear Ladies & Gents,
I have a requirement to delete all the log files in /var/log/test directory that are older than 10 days and their first line begin with "MSH" or "<?xml" or "FHS". I've put together the following BASH script, but it's erroring out:
for filename in $(find /var/log/test... (2 Replies)
I am trying to use the below sed command to replace all "|" to ^, in a folder had 50 dat files. when i tried with 1 file it worked but when i tried with wild card, is not working.
sed -i 's/"|"/\^/g' *.dat
Is this the proper way to use sed command thank you very much for help. (3 Replies)
Discussion started by: cplusplus1
3 Replies
LEARN ABOUT FREEBSD
fwcontrol
FWCONTROL(8) BSD System Manager's Manual FWCONTROL(8)NAME
fwcontrol -- FireWire control utility
SYNOPSIS
fwcontrol [-u bus_num] [-prt] [-c node] [-d node] [-o node] [-s node] [-l file] [-f node] [-g gap_count] [-b pri_req] [-M mode] [-R filename]
[-S filename] [-m EUI64 | hostname]
DESCRIPTION
The fwcontrol utility is designed to provide a way for users to access and control the FreeBSD FireWire subsystem. Without options,
fwcontrol will output a list of devices that are/were connected to the bus.
The following options are available:
-u bus_num
Specify the FireWire bus number to be operated on. The default is bus 0.
-r Initiate bus reset.
-t Show the topology map.
-p Dump PHY registers.
-c node
Show the configuration ROM on the node.
-d node
Hex dump of the configuration ROM.
-o node
Send a link-on PHY packet to the node.
-s node
Write to the RESET_START register on the node.
-l file
Load hex dump file of the configuration ROM and parse it.
-f node
Force specified node to be the root node on the next bus reset by sending a PHY config packet. Valid values are 0 - 63.
-g gap_count
Broadcast new gap_count by sending a PHY_config packet. By default this value is 63 on all nodes. Valid values are 0 - 63.
-i pri_req
Set the PRIORITY_BUDGET register on all supported nodes.
-M mode
Explicitly specify either dv or mpeg mode for the incoming stream. Only meaningful in case of and must precede the -R option. If
not specified, the program will try to guess. In case of ``format 0x20'' error, try to force the ``mpeg'' mode.
-R filename
Receive DV or MPEG TS stream and dump it to a file. Use ^C to stop the receiving. Some DV cameras seem not to send the stream if a
bus manager exists. If it is impossible to get the stream, try the following commands:
sysctl hw.firewire.try_bmr=0
fwcontrol -r
The resulting file contains raw DV data excluding isochronous header and CIP header. It can be handled by libdv in the FreeBSD Ports
Collection. Resulting MPEG TS stream can be played and sent over a network using the VideoLAN vlc tool in the FreeBSD Ports Collec-
tion. The stream can be piped directly to vlc, see EXAMPLES.
-S filename
Send a DV file as isochronous stream.
-m EUI64 | hostname
Set default fwmem target. Hostname will be converted to EUI64 using eui64(5).
FILES
/dev/fw0.0
EXAMPLES
Each DV frame has a fixed size and it is easy to edit the frame order.
fwcontrol -R original.dv
Receive a DV stream with DV camera attached.
dd if=original.dv of=first.dv bs=120000 count=30
Get first 30 frames(NTSC).
dd if=original.dv of=second.dv bs=120000 skip=30 count=30
Get second 30 frames(NTSC).
cat second.dv first.dv | fwcontrol -S /dev/stdin
Swap first and second 30 frames and send them to DV recorder.
For PAL, replace ``bs=120000'' with ``bs=144000''.
fwcontrol -R file.m2t
Receive an MPEG TS stream from a camera producing MPEG transport stream. This has been tested with SONY HDR-FX1E camera that produces HD
MPEG-2 stream at 25 Mbps bandwidth.
To send the stream from the camera over the network using TCP (which surprisingly works better with vlc), you can use
fwcontrol -R - | nc 192.168.10.11 9000
with netcat from ports and to receive the stream, use
nc -l -p 9000 | vlc -
To netcast via UDP, you need to use buffer program from ports, since vlc is not fast enough to read UDP packets from buffers and thus it
experiences dropouts when run directly. The sending side can use
fwcontrol -R - | nc 192.168.10.11 9000
and to receive the stream, use
nc -l -u -p 9000 | buffer -s 10k -b 1000 -m 20m -p 5 | vlc -
For more information on how to work with vlc see its docs.
SEE ALSO mplayer(1), vlc(1), firewire(4), fwe(4), fwip(4), fwohci(4), sbp(4)HISTORY
The fwcontrol utility first appeared in FreeBSD 5.0.
AUTHORS
Hidetoshi Shimokawa <simokawa@FreeBSD.org>
Petr Holub <hopet@ics.muni.cz> (MPEG TS mode)
BUGS
This utility is still under development and provided for debugging purposes. Especially MPEG TS reception support is very rudimental and
supports only high-bandwidth MPEG-2 streams (fn field in CIP header equals 3).
BSD September 12, 2008 BSD