Search Results

Search: Posts Made By: barrydocks
3,600
Posted By Corona688
Not really, that waits for the command to finish...
Not really, that waits for the command to finish and quit before running RunCommand or not. You want to deal with lines, I think:

/opt/bin/tvservice -M 2>&1 | while read LINE
do
case...
Forum: Programming 02-23-2014
5,563
Posted By spacebar
Since mySql doesn't allow "update or insert"...
Since mySql doesn't allow "update or insert" syntax you will need to create a 'before insert' and a 'before update' trigger.

Example code:
create trigger before_insert_concat before insert on...
2,217
Posted By Corona688
I think I can fix that: smbstatus -b | awk...
I think I can fix that:

smbstatus -b | awk -F"[()]" '$2 { print $2 }' | while read IPADDRESS
do
echo "IP address is $IPADDRESS"
done That should make awk only print lines when $2 (the...
4,166
Posted By Don Cragun
Run the command: type ksh The output should...
Run the command:
type ksh
The output should be something like:
ksh is a tracked alias for absolute_path
Save the value marked in blue italics.
Create a file named something like get_pdf...
4,166
Posted By elixir_sinari
Hey, I told you to remove the echo. I was...
Hey, I told you to remove the echo.
I was echo'ing the mv command lines so that you could know what is being moved...
4,378
Posted By Scrutinizer
Sorry, accidentally had an "s" in my suggestion,...
Sorry, accidentally had an "s" in my suggestion, took it out. Try:
sed '/<VirtualHost \*:80>/r /etc/apache2/apache_mod.txt' /etc/apache2/sites-available/default >...
27,614
Posted By radoulov
Absolutely no :) When the script finds a file...
Absolutely no :)
When the script finds a file named, let's say, feat.artist.mp3, it will remove all the dots except the one before the string mp3.
If there is already a file named featartist.mp3,...
27,614
Posted By radoulov
Yes, or execute it directly on the command prompt.
Yes, or execute it directly on the command prompt.
5,754
Posted By michaelrozar17
You will need to escape the forward slash in the...
You will need to escape the forward slash in the sed's replacement part.
sed 's/share.*/&\nveto oplocks = \/*.mdb\//' /etc/samba/smb.conf > /etc/samba/temp_file
5,754
Posted By anurag.singh
Space not necessary between \n and veto. Also []...
Space not necessary between \n and veto. Also [] is not needed around share.
You may just run following:

sed 's/shared.*/&\nveto oplocks = *.mdb/' /etc/samba/smb.conf

And see the output on...
5,754
Posted By michaelrozar17
Assuming you need it inserted after the line...
Assuming you need it inserted after the line "share declaration...." try as below instead of echo... statement
sed 's/share declaration .*/& \nveto oplocks = *.mdb/' /etc/samba/smb.conf > temp_file...
Showing results 1 to 11 of 11

 
All times are GMT -4. The time now is 08:13 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy