10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Below is Script to scan the errorlist file (errorlist file includes a list of errors) with sererv.log file (sererv.log file should contain data of recent 15mins )
but my requirement is I should get the recent logs i.e. cmd to capture only recent 15mins data logged from sererv.log file then scan... (3 Replies)
Discussion started by: manohar2013
3 Replies
2. Shell Programming and Scripting
Hi All,
I am trying to capture the data in linux .While doing load test.
is there's any sample script please help me.
Linux test4 2.6.18-308.8.1.el5 #1 SMP Fri May 4 16:43:02 EDT 2012 x86_64 x86_64 x86_64 GNU/Linux
Thanks, (5 Replies)
Discussion started by: sam1226
5 Replies
3. UNIX for Dummies Questions & Answers
Hi,
I was trying a script to cature all data between 12-05-09 06:00:00 to 12-05-09 23:59:59 from a huge file. (i.e. Skip all data between 00:00:00 to 05:59:59)
TOKEN-1 12-05-09 00:00:00 MAIPR no_OMDB_key #000995 >
..
..
..
TOKEN-1 12-05-09 06:00:00 TRUNK 358 #04988 >
..
..
TOKEN-1 12-05-09... (2 Replies)
Discussion started by: vanand420
2 Replies
4. Shell Programming and Scripting
I have 2 zip files which have about 20 million records in each file. file 2 will have additional records than file 1. I want to compare the records in both the files and capture the new records from file 2 into another file file3. Please help me with a command/script which provides me the desired... (8 Replies)
Discussion started by: koneru
8 Replies
5. UNIX for Advanced & Expert Users
Hi,
I have a query as follows :
suppose I am matching a string in a file say "start from here"
and I want to pick up 'n' number of lines () from the matched string. Is there any way to do that ?
1) going forward I want to do this for every match for the above string
2) or limit this to... (2 Replies)
Discussion started by: sumoka
2 Replies
6. IP Networking
I have a number of Windows CE operator terminals. They have facility to print alarms/messages to ...
aser or Inkjet (so they're using PCL).
USB or IP. IP connection takes just the IP address.
Question
How could I create a service or daemon on a server to capture all this data?... (7 Replies)
Discussion started by: transistor
7 Replies
7. Shell Programming and Scripting
I would like to capture output from two commands to a test file on the same line...
I want to get a file with all Applications and the Version of it...here are the two commands I use to get the output.
To get Application list I use
ls -1 /Applications/ |grep .app >>... (3 Replies)
Discussion started by: elbombillo
3 Replies
8. Shell Programming and Scripting
Hello,
If I run a program from within shell, the output is displayed in the command line terminal. Is there a way I can capture that output and choose only the very last string in it to send it to a new file?
Thank you (6 Replies)
Discussion started by: Lorna
6 Replies
9. UNIX for Dummies Questions & Answers
Hi,
i willbe very much grateful to u if u help me out..
if i simply connect pbx machine to printer by serial port RS232 then we find this view:
But i want to capture this data into database automatically when the pbx is running.The table in database will contain similar to this view inthe... (1 Reply)
Discussion started by: boss
1 Replies
10. Shell Programming and Scripting
Is it possible to capture data posted from a Web Form?? I mean when data in the form on a webpage is send via POST method and not GET method. Can it be captured! (1 Reply)
Discussion started by: azmathshaikh
1 Replies
SCREENCAPTURE(1) BSD General Commands Manual SCREENCAPTURE(1)
NAME
screencapture -- capture images from the screen and save them to a file or the clipboard
SYNOPSIS
screencapture [-SWCTMPcimswxto] file
DESCRIPTION
The screencapture utility is not very well documented to date. A list of options follows.
-c Force screen capture to go to the clipboard.
-b Capture Touch Bar, only works in non-interactive modes.
-C Capture the cursor as well as the screen. Only allowed in non-interactive modes.
-d Display errors to the user graphically.
-i Capture screen interactively, by selection or window. The control key will cause the screen shot to go to the clipboard. The space
key will toggle between mouse selection and window selection modes. The escape key will cancel the interactive screen shot.
-m Only capture the main monitor, undefined if -i is set.
-D <display> Screen capture or record from the display specified. 1 is main, 2 secondary, etc
-o In window capture mode, do not capture the shadow of the window.
-p Screen capture will use the default settings for capture. The files argument will be ignored.
-M Open the taken picture in a new Mail message.
-P Open the taken picture in a Preview window or QuickTime Player if video.
-I Open the taken picture in Mesages.
-B <bundleid> Open in the app matching bundleid.
-s Only allow mouse selection mode.
-S In window capture mode, capture the screen instead of the window.
-J <style> Sets the starting style of interfactive capture "selection","window","video".
-t <format> Image format to create, default is png (other options include pdf, jpg, tiff and other formats).
-T <seconds> Take the picture after a delay of <seconds>, default is 5.
-w Only allow window selection mode.
-W Start interaction in window selection mode.
-x Do not play sounds.
-a Do not capture attached windows.
-r Do not add screen dpi meta data to captured file.
-l <windowid> Captures the window with windowid.
-R <rectangle> Capture rectangle using format x,y,width,height.
-v Capture video recording of the screen.
-V <seconds> Capture video recording of the screen for the specified seconds.
-A <id> Captures audio during a video recording using default input. Optionally pass id of the audio source.
-k Show clicks in video recordings.
-U Show interactive toolbar in interactive mode.
-u Present UI after screencapture is complete. Files passed to commandline will be ignored.
files where to save the screen capture, 1 file per screen
BUGS
Better documentation is needed for this utility.
SECURITY CONSIDERATIONS
To capture screen content while logged in via ssh, you must launch screencapture in the same mach bootstrap hierarchy as loginwindow:
PID=pid of loginwindow
sudo launchctl bsexec $PID screencapture [options]
HISTORY
A screencapture utility first appeared in Mac OS X v10.2.
Mac OS June 16, 2004 Mac OS