Sponsored Content
Top Forums Shell Programming and Scripting Making a script to run several nmap scans and save out put to a file Post 303044824 by RudiC on Wednesday 4th of March 2020 03:56:48 PM
Old 03-04-2020
You simply redirect the entire script's output to a file, like
Code:
./script_nmap.sh > totaloutput

 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

making ssh run without password

Hello Everybody, Could anyone please tell me how to get ssh to work without asking for passwords? (i want to do a ssh <hostname> without getting a request for a password but getting connected straight away) I have attempted the following but to no avail :( ... I tried to generate a SSH... (5 Replies)
Discussion started by: rkap
5 Replies

2. UNIX for Advanced & Expert Users

Making things run faster

I am processing some terabytes of information on a computer having 8 processors (each with 4 cores) with a 16GB RAM and 5TB hard drive implemented as a RAID. The processing doesn't seem to be blazingly fast perhaps because of the IO limitation. I am basically running a perl script to read some... (13 Replies)
Discussion started by: Legend986
13 Replies

3. UNIX Desktop Questions & Answers

script to save file

Hello evry1, Trying to come up with a script that picks content from another file, and saved the new file with the original file name but adding the time when the script is run to the new file name. after which it compresses this new file. Thanks in advance (1 Reply)
Discussion started by: Targ
1 Replies

4. Shell Programming and Scripting

Run a bash script, display on the screen and save all information in a file including error info

Hi all, How to: Run a bash script, display on the screen and save all information in a file including error information. For example: I have a bash script called test.sh now I want to run the test.sh and display the output on the screen and save the output including error info to a file. ... (1 Reply)
Discussion started by: Damon sine
1 Replies

5. Shell Programming and Scripting

open file and save as script

hi guys i have a problem with my file did not work as usual. The problem is i need to open the file and save as using same name and after that the file is work properly. Is it any shell script can do open the file and save as using same name..because i have thousand of file with the same problem (3 Replies)
Discussion started by: zulabc
3 Replies

6. Shell Programming and Scripting

Making script run faster

Can someone help me edit the below script to make it run faster? Shell: bash OS: Linux Red Hat The point of the script is to grab entire chunks of information that concerns the service "MEMORY_CHECK". For each chunk, the beginning starts with "service {", and ends with "}". I should... (15 Replies)
Discussion started by: SkySmart
15 Replies

7. UNIX for Dummies Questions & Answers

How to save and run a list of commands?

Dear every one, I am working with the data of my lab program and I have to do many times by the same list of some commands (grep, then save to file, then use awk to delete odd lines, save to file, use awk to delete even lines, save to file...). Is there any way to save a list of command which I... (4 Replies)
Discussion started by: phamnu
4 Replies

8. Shell Programming and Scripting

Opening a file in vi and automatically save and quit this file using shell script

Hi friends, In my shell script, I want to open a file using vi editor. After opening the file in vi, I want to save and quit this file automatically.... all through shell script. the code segment is: ------------------------------------------------------------ cd ~/netfpga/projects/scone/sw/... (2 Replies)
Discussion started by: sachinteotia
2 Replies

9. Shell Programming and Scripting

Run sql query in shell script and output data save as delimited text

I want to run sql query in shell script and output data save as delimited text (delimited text would be comma) Code: SPOOL_FILE=/pgedw/dan.txt SQL=/pgedw/dan.sql sqlplus -s username/password@myhost:port/servicename <<EOF set head on set COLSEP , set linesize 32767 SET TRIMSPOOL ON SET... (8 Replies)
Discussion started by: Jaganjag
8 Replies

10. Shell Programming and Scripting

Shell script run in a case statement call to run a php file, also Perl

Linux System having all Perl, Python, PHP (and Ruby) installed From a Shell script, can call a Perl, Python, PHP (or Ruby ?) file eg eg a Shell script run in a case statement call to run a php file, also Perl or/and Python file??? Like #!/usr/bin/bash .... .... case $INPUT_STRING... (1 Reply)
Discussion started by: hoyanet
1 Replies
XSetPointerMapping(3X11)					     MIT X11R4						  XSetPointerMapping(3X11)

Name
       XSetPointerMapping, XGetPointerMapping - manipulate pointer settings

Syntax
       int XSetPointerMapping(display, map, nmap)
	  Display *display;
	  unsigned char map[];
	  int nmap;

       int XGetPointerMapping(display, map_return, nmap)
	  Display *display;
	  unsigned char map_return[];
	  int nmap;

Arguments
       display	 Specifies the connection to the X server.

       map	 Specifies the mapping list.

       map_return
		 Returns the mapping list.

       nmap	 Specifies the number of items in the mapping list.

Description
       The function sets the mapping of the pointer.  If it succeeds, the X server generates a event, and returns Element map[i] defines the logi-
       cal button number for the physical button i+1.  The length of the list must be the same as would return, or a error results.  A zero ele-
       ment disables a button, and elements are not restricted in value by the number of physical buttons.  However, no two elements can have the
       same nonzero value, or a error results.	If any of the buttons to be altered are logically in the down state, returns and the mapping is
       not changed.

       can generate a error.

       The function returns the current mapping of the pointer.  Pointer buttons are numbered starting from one.  returns the number of physical
       buttons actually on the pointer.  The nominal mapping for a pointer is map[i]=i+1.  The nmap argument specifies the length of the array
       where the pointer mapping is returned, and only the first nmap elements are returned in map_return.

Diagnostics
       Some numeric value falls outside the range of values accepted by the request.
		 Unless a specific range is specified for an argument, the full range defined by the argument's type is accepted. Any argument
		 defined as a set of alternatives can generate this error.

See Also
       XChangeKeyboardControl(3X11), XChangeKeyboardMapping(3X11)
       X Window System: The Complete Reference, Second Edition, Robert W. Scheifler and James Gettys

															  XSetPointerMapping(3X11)
All times are GMT -4. The time now is 11:51 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy