9 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
I am looking for a way to start a script and have it prompt for a password that will be used later on in the script to SSH to another host and to SFTP. I don't want the password to be hard coded. Below is my script with the actual IP's and usernames removed.
#!/usr/bin/expect -f... (2 Replies)
Discussion started by: jbrass
2 Replies
2. Shell Programming and Scripting
The below code works great if the user inputs a single value. The sed command applies the NM_ with the user input it is saved to a file. However, if two values are entered the below does not work. Can both values be saved at the same time if they are entered in windows format? Thank you :).
... (6 Replies)
Discussion started by: cmccabe
6 Replies
3. Shell Programming and Scripting
I am trying to modify the "corestat v1.1" code which is in Perl.The typical output of this code is below:
Core Utilization
CoreId %Usr %Sys %Total
------ ----- ----- ------
5 4.91 0.01 4.92
6 0.06 ... (0 Replies)
Discussion started by: Zam_1234
0 Replies
4. Shell Programming and Scripting
I am having a little trouble with some things using the code below:
1. printf "Enter variant: "; read variant The user enters the variant and that value is used in the python script. However, I am not sure how to save that value inputed as a text file in a specific directory... (8 Replies)
Discussion started by: cmccabe
8 Replies
5. Shell Programming and Scripting
Hi friends,
I am pretty new to shell scripting, please help me in this Scenario.
for example, If I have one file called input.txt
once I run the script,
1.It has to delete the old input.txt and create the new input.txt (if old input.txt is not there, no offence, just it has to create a... (2 Replies)
Discussion started by: Padmanabhan
2 Replies
6. Shell Programming and Scripting
Hi Guys,
I have blank file A.txt
I will run the script xyz.sh
First i want to open a.txt file...
Now i will enter some data like
XYZ
ABC
PQR
..
Save it and keep continue my script....
END of my script.
Thanks (1 Reply)
Discussion started by: asavaliya
1 Replies
7. Shell Programming and Scripting
Hi,
i have 2 input files which are file1.txt and file2.txt. I need to extract data from file1.txt and file2.txt and save it in file3.txt like example below:-
File1.txt
ID scrap1
Name scrap1
start 1
end 10
ID scrap2
Name scrap2
start 11
end ... (4 Replies)
Discussion started by: redse171
4 Replies
8. Solaris
I have a question here about the OS logs (/var/adm/messages) where it should write most alarms.
I ran a hardware test by showing the Power Supply redundancy. Removing PS0 while PS1 is still plugged in confirms that the system still operates with no problems. However, when it comes to logging, I... (1 Reply)
Discussion started by: gilberteu
1 Replies
9. Solaris
Dear Frnz,
i have a ultra 45 with solaris 10 installed.
I face a weird issue in that.
once the machine goes to power save mode i am not able to bring the machine back by hitting the keys in keyboard or moving the mouse.
I am able to rsh the machine from another machine.
To bring the... (1 Reply)
Discussion started by: sriram.s
1 Replies
PCAP_CAN_SET_RFMON(3PCAP) PCAP_CAN_SET_RFMON(3PCAP)
NAME
pcap_can_set_rfmon - check whether monitor mode can be set for a not-yet-activated capture handle
SYNOPSIS
#include <pcap/pcap.h>
int pcap_can_set_rfmon(pcap_t *p);
DESCRIPTION
pcap_can_set_rfmon() checks whether monitor mode could be set on a capture handle when the handle is activated.
RETURN VALUE
pcap_can_set_rfmon() returns 0 if monitor mode could not be set, 1 if monitor mode could be set, PCAP_ERROR_NO_SUCH_DEVICE if the capture
source specified when the handle was created doesn't exist, PCAP_ERROR_PERM_DENIED if the process doesn't have permission to check whether
monitor mode could be supported, PCAP_ERROR_ACTIVATED if called on a capture handle that has been activated, or PCAP_ERROR if an error
occurred. If PCAP_ERROR is returned, pcap_geterr() or pcap_perror() may be called with p as an argument to fetch or display the error
text.
SEE ALSO
pcap(3PCAP), pcap_create(3PCAP), pcap_activate(3PCAP), pcap_set_rfmon(3PCAP)
18 May 2010 PCAP_CAN_SET_RFMON(3PCAP)