05-22-2006
By the way:
If I enter the following command directly into the shell, everything works fine and I can connect to the MySQL database simply by typing "mysql":
export PATH="/usr/local/bin:/usr/local/sbin:/usr/local/mysql/bin:$PATH"
But how can I add this to the path...??? I'm really a dummie, aren't I...
9 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Hi Friends,
Can any of you explain me about the below line of code?
mn_code=`env|grep "..mn"|awk -F"=" '{print $2}'`
Im not able to understand, what exactly it is doing :confused:
Any help would be useful for me.
Lokesha (4 Replies)
Discussion started by: Lokesha
4 Replies
2. UNIX for Advanced & Expert Users
Hey all,
I have a shell that invokes a AWK.
In this AWK i want invoke a function that receives 3 parameters:
date: 20080831
time: 235901
duration: 00023
that function receive this 3 parameters and sum to this value two more seconds:
2008083123590100025
Remember that in case that... (3 Replies)
Discussion started by: anaconga
3 Replies
3. Shell Programming and Scripting
Hi,
I have line in input file as below:
3G_CENTRAL;INDONESIA_(M)_TELKOMSEL;SPECIAL_WORLD_GRP_7_FA_2_TELKOMSEL
My expected output for line in the file must be :
"1-Radon1-cMOC_deg"|"LDIndex"|"3G_CENTRAL|INDONESIA_(M)_TELKOMSEL"|LAST|"SPECIAL_WORLD_GRP_7_FA_2_TELKOMSEL"
Can someone... (7 Replies)
Discussion started by: shis100
7 Replies
4. Shell Programming and Scripting
If I enter (simplified):
find . -printf "%p\n"
then all files in the output are prepended by a "." like
./local/share/test23.log
How can achieve that
a.) the leading "./" is omitted
and/or
b.) the full path to the current directory is inserted (enclosed by brackets and a blank)... (1 Reply)
Discussion started by: pstein
1 Replies
5. UNIX for Dummies Questions & Answers
How to use "mailx" command to do e-mail reading the input file containing email address, where column 1 has name and column 2 containing “To” e-mail address
and column 3 contains “cc” e-mail address to include with same email.
Sample input file, email.txt
Below is an sample code where... (2 Replies)
Discussion started by: asjaiswal
2 Replies
6. Shell Programming and Scripting
These three finds worked as expected:
$ find . -iname "*.PDF"
$ find . -iname "*.PDF" \( ! -name "*_nobackup.*" \)
$ find . -path "*_nobackup*" -prune -iname "*.PDF"
They all returned the match:
./folder/file.pdf
:b:
This find returned no matches:
$ find . -path "*_nobackup*" -prune... (3 Replies)
Discussion started by: wolfv
3 Replies
7. Shell Programming and Scripting
Hello.
System : opensuse leap 42.3
I have a bash script that build a text file.
I would like the last command doing :
print_cmd -o page-left=43 -o page-right=22 -o page-top=28 -o page-bottom=43 -o font=LatinModernMono12:regular:9 some_file.txt
where :
print_cmd ::= some printing... (1 Reply)
Discussion started by: jcdole
1 Replies
8. AIX
Hi 2 all,
i have had AIX 7.2
:/# /usr/IBMAHS/bin/apachectl -v
Server version: Apache/2.4.12 (Unix)
Server built: May 25 2015 04:58:27
:/#:/# /usr/IBMAHS/bin/apachectl -M
Loaded Modules:
core_module (static)
so_module (static)
http_module (static)
mpm_worker_module (static)
... (3 Replies)
Discussion started by: penchev
3 Replies
9. Shell Programming and Scripting
I am trying find files in sub dir with certain tags using tag command, and add the period to the beginning. I can't use chflags hidden {} cause it doesn't add period to the beginning of the string for web purpose. So far with my knowledge, I only know mdfind or tag can be used to search files with... (6 Replies)
Discussion started by: Nexeu
6 Replies
LEARN ABOUT MOJAVE
socketfilterfw
socketfilterfw(8) BSD System Manager's Manual socketfilterfw(8)
NAME
socketfilterfw -- Application Firewall daemon
SYNOPSIS
socketfilterfw [-hdlk] [--getglobalstate] [--setglobalstate on | off] [--getblockall] [--setblockall on | off] [--listapps]
[--getappblocked path] [--blockapp path] [--unblockapp path] [--add path] [--remove path] [--getallowsigned]
[--setallowsigned] [--setallowsignedapp] [--getstealthmode] [--setstealthmode on | off] [--getloggingmode]
[--setloggingmode on | off] [--getloggingopt] [--setloggingopt throttled | brief | detail]
DESCRIPTION
socketfilterfw is a daemon that gets launched on demand when the Application Firewall is enabled. There are also command-line options to
change the Application Firewall behavior.
OPTIONS
The command line options are as follows:
-h Display this help and exit.
-d Turn on debugging.
-l Do logging and run in daemon mode.
-k Kill daemon.
--getglobalstate
Display if the firewall is enabled or not.
--setglobalstate on | off
Turn the firewall on or off.
--getblockall
Show whether block all is enabled or not.
--setblockall on | off
Enable or disable block all option.
--listapps
Display a list of paths of added applications.
--getappblocked path
Show whether connections are blocked or not for the application at the indicated path.
--blockapp path
Block the application at the indicated path.
--unblockapp path
Unblock the application at the indicated path.
--add path
Add the application at the indicated path to the firewall.
--remove path
Remove the application at the indicated path from the firewall.
--getallowsigned
Show whether built-in and downloaded signed applications are to automatically receive incoming connections.
--setallowsigned
Set whether built-in signed applications are to automatically receive incoming connections or not.
--setallowsignedapp
Set whether downloaded signed applications are to automatically receive incoming connections or not.
--getstealthmode
Show whether stealth mode is on or not.
--setstealthmode on | off
Set stealth mode on or off.
--getloggingmode
Show whether logging is on or not.
--setloggingmode on | off
Set logging to on or off.
--getloggingopt
Show logging option.
--setloggingopt throttled | brief | detail
Set logging option.
Mac OS November 10, 2016 Mac OS