04-30-2007
It worked for me
Thanks sooo much! I will be careful!
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
I want to know if there is a way that I can right a script that will su to root and prepopulate the password field? (6 Replies)
Discussion started by: chrchcol
6 Replies
2. Shell Programming and Scripting
I'm trying to use sed to remove the value of one field from another field. For example:
cat inputfile
123|ABC|Generic_Textjoe@yahoo.com|joe@yahoo.com|DEF
456|GHI|Other_recordjohn@msn.com|john@msn.com|JKL
789|MNO|No_Email_On_This_One|smith@gmail.com|PQR
I would like to remove the email... (2 Replies)
Discussion started by: bribri87
2 Replies
3. Shell Programming and Scripting
I am trying to get a file by doing ftp to the server.
The below script works fine but as I type password it is displayed as simple text.
HOST='192.108.245.101'
echo 'username: '
read USER
echo 'password:'
read PASSWD
ftp -n $HOST <<END_SCRIPT
quote USER $USER
quote PASS $PASSWD
lcd... (1 Reply)
Discussion started by: hiten.r.chauhan
1 Replies
4. Shell Programming and Scripting
I'm trying to update a text file via sed/awk, after a lot of searching I still can't find a code snippet that I can get to work.
Brief overview:
I have user input a line to a variable, I then find a specific value in this line 10th field in this case. After asking for new input and doing some... (14 Replies)
Discussion started by: crownedzero
14 Replies
5. Shell Programming and Scripting
QUESTION 1:
How do you replace a specific line (i.e. line 4) with a new user defined line (i.e. the contents of SAMS’s name, history, math and English grades have been set already). I have been attempting to use SED (FYI: I don’t have GNU SED) or AWK, but haven’t had any luck. FYI: I am using... (1 Reply)
Discussion started by: thibodc
1 Replies
6. Shell Programming and Scripting
i have something like this,
cat filename.txt
hui this si s"dfgdfg" omeone ipaddress="10.19.123.104" wel hope this works
i want to replace only 10.19.123.104 with different ip say 10.19.123.103
i tried this
sed -i "s/'ipaddress'/'ipaddress=10.19.123.103'/g" filename.txt
... (1 Reply)
Discussion started by: vivek d r
1 Replies
7. Shell Programming and Scripting
Hello all
Im trying to write a script that can get past the "enter password" field.Coming to the details, Im planning to write a script that can actually check for the validity of certificates in websphere. There is a utility "keytool" that helps provide this information.However if we want to... (4 Replies)
Discussion started by: coolkid
4 Replies
8. Shell Programming and Scripting
Hi all,
I have a requirement to replace a field with a character as per the length of the field.
Suppose i have a file where second field is of 20 character length. I want to replace second field with 20 stars (*). like ********************
As the field is not a fixed one, i want to do the... (2 Replies)
Discussion started by: gani_85
2 Replies
9. Shell Programming and Scripting
Hello friends,
We have encrypted password strings for all of our users (each user has different password).
After creating users in Linux, we replace encrypted passwords manually on /etc/shadow so that their passwords directly work. Instead we want to do it using scripting.
I tried with sed... (2 Replies)
Discussion started by: prvnrk
2 Replies
10. Shell Programming and Scripting
Hi,
Need to replace last field in a file(/etc/passwd) ,if first filed matches with particular username.
Scenario:
cat testfor1
deekshi:x:7082:7082::/home/deekshi:/bin/bash
harini1:x:7083:7083::/home/harini1:/bin/bash
Here,if first field contains "deekshi", then i should replace... (4 Replies)
Discussion started by: Sumanthsv
4 Replies
LEARN ABOUT PHP
ng_bluetooth
NG_BLUETOOTH(4) BSD Kernel Interfaces Manual NG_BLUETOOTH(4)
NAME
ng_bluetooth -- placeholder for global Bluetooth variables
SYNOPSIS
#include <sys/types.h>
#include <netgraph/bluetooth/include/ng_bluetooth.h>
DESCRIPTION
The ng_bluetooth module is a placeholder for global Bluetooth variables. All Bluetooth variables can be examined and changed via sysctl(8).
Bluetooth Variables
Below is the description of default variables. Each Bluetooth module might add its own variables to the tree.
net.bluetooth.version
A read-only integer variable that shows the current version of the Bluetooth stack.
net.bluetooth.hci.command_timeout
A read-write integer variable that controls the Host Controller Interface (HCI) command timeout (in seconds), i.e., how long the HCI
layer will wait for the Command_Complete or Command_Status event from a Bluetooth device.
net.bluetooth.hci.connection_timeout
A read-write integer variable that controls the HCI connection timeout, i.e. how long the HCI layer will wait for the
Connection_Complete event. Normally this should not be required as Bluetooth devices have connection timeout of their own and will
send event back. This timeout is required to ensure that no connection will stall in case when the HCI transport layer is broken.
Be careful when changing this variable. Make sure you understand what you are doing.
net.bluetooth.hci.max_neighbor_age
A read-write integer variable that controls time-to-live (in seconds) for entries in the HCI neighbor cache. Every time a Bluetooth
device performs an Inquiry operation, the results will be put in cache. Later when a Bluetooth device establishes a baseband connec-
tion, it will try to find the matching entry in the cache and use it. This might speed up establishment of the baseband connection.
net.bluetooth.l2cap.rtx_timeout
A read-write integer variable that controls the Link Layer Control and Adaptation Protocol (L2CAP) Retransmission Timeout (RTX) (in
seconds). Every time the L2CAP layer submits a control command, the RTX timeout is set. The value of the RTX timeout should be
greater or equal to the value of the HCI connection timeout. Be careful when changing this variable. Make sure you understand what
you are doing.
net.bluetooth.l2cap.ertx_timeout
A read-write integer variable that controls the L2CAP Extended Retransmission Timeout (ERTX) (in seconds). In some cases remote peer
may respond with PENDING status to the L2CAP control command. In this case the L2CAP command timeout is reset to the ERTX timeout
value. The value of the ERTX timeout should be greater or equal to the value of the RTX timeout. Be careful when changing this
variable. Make sure you understand what you are doing.
SEE ALSO
ng_btsocket(4), ng_hci(4), ng_l2cap(4), sysctl(8)
HISTORY
The ng_bluetooth module was implemented in FreeBSD 5.0.
AUTHORS
Maksim Yevmenkin <m_evmenkin@yahoo.com>
BSD
November 9, 2002 BSD