10 More Discussions You Might Find Interesting
1. Programming
With a little bit of work, was able to build a nice "Wuhan Coronavirus Status" app using MQTT and the IoT-OnOff app. More on this technique here:
ESP32 (ESP-WROOM-32) as an MQTT Client Subscribed to Linux Server Load Average Messages
The result turned out nice, I think. I like the look and... (10 Replies)
Discussion started by: Neo
10 Replies
2. Shell Programming and Scripting
I need to parse some continuous output from a program (i.e. aScript.py) into a portal that uses curl. I've written a simple awk one-liner to parse the information that is output from aScript.py, but I'm not able to execute it. I can succeed with just one line of the output from aScript.py: echo... (2 Replies)
Discussion started by: jm4smtddd
2 Replies
3. Shell Programming and Scripting
This seemed straight forward until I tried to code it.
I'm running ioscan -fuNC disk to get list of disk including hardware path. What I'm trying to do is use awk to take this output, extract hardware path, and pass that as a variable to ioscan -P wwid -N -H 64000/0xfa00/0x1a | grep ^disk and... (11 Replies)
Discussion started by: steve72
11 Replies
4. Shell Programming and Scripting
Hi gurus I need to execute awk command on remote machine and write output to stdout.
So far Ive tried:
ssh server "ifconfig | grep -A 1 "^eth" | awk '{if ($1~/^eth/) {temp=$1} else {print temp $0}}'"
ssh server "exec " < file_containing_above_command
But neither works
Without awk... (9 Replies)
Discussion started by: wakatana
9 Replies
5. Shell Programming and Scripting
Hi,
this is fantastic forum for shell programming and scripting,
so please let me to introduce you with my very old concept to
have web form/s with radio, select, input fields
and have an application generating valid, syntax error free scripting code.
The same or alike questions are asked... (2 Replies)
Discussion started by: darius2
2 Replies
6. Shell Programming and Scripting
Hi All,
I need this to execute and not just print on Red Hat ent 4 bash shell.
cat /etc/passwd|grep db2 | awk -F":" '{print "cat /etc/group | grep ",$4}'
Output:
cat /etc/group | grep 1000 (I don't want this to print but execute)
Thanks for any comment you may add. (2 Replies)
Discussion started by: itik
2 Replies
7. Shell Programming and Scripting
Hi All,
Can you please tell me how to execute local function written in a shell script with awk.
i tried with system command but its giving an error. (1 Reply)
Discussion started by: krishna_gnv
1 Replies
8. Shell Programming and Scripting
:cool:
I need to execute a shell script to do the following:
cat a file
run two back ground processes using the first two values from the file
wait till those background processes finish
run two more background processes using the next two values from the file
wait till those background... (1 Reply)
Discussion started by: halo98
1 Replies
9. Shell Programming and Scripting
If I have a flat file date.txt separate by a tab
date1 date2 count
20060226 20060225 2
20060227 20060226 2
20060228 20060227 5
20060314 20060228 2
20060315 20060314 1
If $3 (count) is 5 then execute the script testit.ksh with... (13 Replies)
Discussion started by: sabercats
13 Replies
10. Shell Programming and Scripting
Greetings Friends,
Suppose I wish to invoke some shell level commands inside an awk script how to do that?
say I wish to use : "wc" on a record to count number of characters in a record
Any clues?
Thanks,
Rishi (1 Reply)
Discussion started by: RishiPahuja
1 Replies
A2ENSITE(8) System Manager's Manual A2ENSITE(8)
NAME
a2ensite, a2dissite - enable or disable an apache2 site / virtual host
SYNOPSIS
a2ensite [site]
a2dissite [site]
DESCRIPTION
This manual page documents briefly the a2ensite and a2dissite commands.
a2ensite is a script that enables the specified site (which contains a <VirtualHost> block) within the apache2 configuration. It does this
by creating symlinks within /etc/apache2/sites-enabled. Likewise, a2dissite disables a site by removing those symlinks. It is not an
error to enable a site which is already enabled, or to disable one which is already disabled.
The default site is handled specially: The resulting symlink will be called 000-default in order to be loaded first.
EXAMPLES
a2dissite default
Disables the default site.
FILES
/etc/apache2/sites-available
Directory with files giving information on available sites.
/etc/apache2/sites-enabled
Directory with links to the files in sites-available for enabled sites.
SEE ALSO
apache2ctl(8).
AUTHOR
This manual page was written by Stefan Fritsch <sf@debian.org> (based on the a2enmod manual page by Daniel Stone <daniel@sfarc.net>) for
the Debian GNU/Linux distribution.
8 June 2007 A2ENSITE(8)