Someone could help me with these sentence?
Code:
per=`print "scale=2; $sum/$count" | bc`
It says me:
Code:
(standard_in) 1: parse error
Why?
per=`print "scale=2; $sum/$count" | bc`
(standard_in) 1: parse error
sudo ./file.sh
./file.sh
sudo chmod 777 ./file.sh
chmod 777
sudo chmod 777
1 -Change location to the top-level directory of the source distribution.
/
# cd / root@- /# tar xzvf /home/normal/Downloads/mysql-connector-c-6.1.6-src.tar.gz root@- /# cd /mysql-connector-c-6.1.6-src/ root@- /mysql-connector-c-6.1.6-src# cmake -G "Unix Makefiles" root@- /mysql-connector-c-6.1.6-src# make root@- /mysql-connector-c-6.1.6-src# make install
ln -s /usr/local/mysql-5.6.25/include /usr/include
# gcc ctemp.c In file included from ctemp.c:2:0: /usr/include/mysql.h:57:27: fatal error: mysql_version.h: No such file or directory #include "mysql_version.h" ^
Sun Dec 21 03:53:42 SGT 2014 > cat test5.sh #!/bin/bash echo "Please enter value for name :" read name echo "Your name is $name." echo "Next echo will be a syntax error" ehco
Sun Dec 21 03:53:46 SGT 2014 > test5.sh 1> output.txt 2> error.txt Noob Sun Dec 21 03:54:56 SGT 2014 > cat output.txt Please enter value for name : Your name is Noob. Next echo will be a syntax error Sun Dec 21 03:55:23 SGT 2014 > cat error.txt /home/alan/scripts/test5.sh: line 8: ehco: command not found Sun Dec 21 03:55:26 SGT 2014 >
Sun Dec 21 03:59:14 SGT 2014 > test5.sh > output.txt 2>&1
test5.sh 2>&1 1>output.txt or test5.sh 2>&1>output.txt ?
#include "wavelet2d.h"
#include "wavelet2s.h"
gcc -L/home/mario/wavelet/wavelib/linuxstatic -lwavelet2s wavedemo1.cpp -o wavedemo1
OBS/ns-2/integrated_agent.h: In constructor `BurstManager::BurstManager()': OBS/ns-2/integrated_agent.h:86: warning: `BurstManager::bt_' will be initialized after OBS/ns-2/integrated_agent.h:84: warning: `int BurstManager::currburstsize_' OBS/ns-2/integrated_agent.cc:66: warning: when initialized here OBS/ns-2/integrated_agent.cc: In member function `int BurstManager::nhops(nsaddr_t, nsaddr_t)': OBS/ns-2/integrated_agent.cc:81: error: invalid conversion from `const char*' to `char*' <------- this is the error OBS/ns-2/integrated_agent.cc: In member function `virtual void IPKTAgent::recv(Packet*, Handler*)': OBS/ns-2/integrated_agent.cc:180: warning: unused variable 'ipkth' /root/OBS/ns-allinone-2.31/tclcl-1.19/tclcl.h:150: error: `void Tcl::error(const char*)' is private OBS/ns-2/integrated_agent.cc:185: error: within this context OBS/ns-2/integrated_agent.cc:155: warning: unused variable 'hdr' OBS/ns-2/integrated_agent.cc: In member function `void IPKTAgent::deBurst(Packet*)': OBS/ns-2/integrated_agent.cc:192: warning: unused variable 'hdrip' OBS/ns-2/integrated_agent.cc:194: warning: unused variable 'ch' make: *** [OBS/ns-2/integrated_agent.o] Error 1
int BurstManager::nhops(nsaddr_t src,nsaddr_t des) { Tcl& tcl = Tcl::instance(); sprintf(tcl.buffer(),"$ns nhops %d %d",src,des); tcl.eval(); char *ni = tcl.result(); <------this is the line 81 return atoi(ni); }
./VMware-Player-6.0.1-1379776.x86_64.bundle
Failed to build vmnet. Failed to execute the build command.
Module vmnet not loaded
vmware-modconfig --console --install-all
make: Leaving directory `/tmp/modconfig-2NfFeS/vmnet-only' Unable to install all modules.
read number
expr 500 \* ${$var1} / 100
expr $above_output \* ${$var2} /100
expr $above_output \* ${$var3} /100
PREFIX=192.168.1 OCTET=1 while [ $OCTET -lt "255" ]; do echo -en "Pinging ${PREFIX}.${OCTET}..." ping -c1 -w1 ${PREFIX}.${OCTET} > /dev/null 2>&1 if [ "$?" -eq "0" ]; then echo "OK" else echo "Failed" fi let OCTET=$OCTET+1 done
let $OCTET=$OCTET+1
Forbidden You don't have permission to access /phpmyadmin on this server.
[authz_co error] [pid 2525] [client 192.1010.118.0:51878] AH01630: client denied by server configuration: /usr/share/phpMyAdmin
-bash: apt-get: command not found
configu error: cannot run /bin/sh buildlib/config.sub