There is also a problem with the remote command.
It is evaluated once on the calling system and another time on the remote system.
To solve, put the remote command in 'ticks'. And solve the problem with the embedded ticks.
That looks ugly.
Better save the normal command in a file "remotecommand.sh"
And send that to the remote server (without -n)
The script interpreter (/bin/sh) is called explicitly, and the normal command is piped through the ssh to it.
NB: I replaced the '\;' delimiter by a simple \; meaning a semicolon.
Last edited by MadeInGermany; 07-08-2013 at 05:06 AM..
could any one tell me the error in the script here...
it says
awk: syntax error near line 15
awk: bailing out near line 15
... the awk script is attached
#This awk script collects the undec neighbour info
#
BEGIN {
printf "SOURCE\tSECTOR\tPNPHASE\tLEVEL\t\REFERENCE\n"
}
... (7 Replies)
hi there
i write one awk script file in shell programing
the code is related to dd/mm/yy to month, day year format
but i get an error
please can anybody help me out in this problem ??????
i give my code here including error
awk `
# date-month -- convert mm/dd/yy to month day,... (2 Replies)
Hello all,
Here is what my bash script does: sums number columns, saves the tot in new column, outputs if tot >= threshold val:
> cat getnon0file.sh
#!/bin/bash
this="getnon0file.sh"
USAGE=$this"
InFile="xyz.38"
Min="0.05"
#
awk '{sum=0; for(n=2; n<=NF; n++){sum+=$n};... (4 Replies)
Hi Friends,
the below script has been through the errors in sun solaris.
awk '/%s/{f=0 ;n++; print >(file="OUT_" n); close("OUT_" n-1)} f{ print > file}; /%s/{f=1}' $BASE_DIR/concat.TXT
awk: syntax error near line 1
awk: bailing out near line 1
And
ls $MERGE_DIR/*.R | awk '
{
... (2 Replies)
Hi,
I run an awk script and I got the error attached below:
here are the lines that the compiler point to as an error:
duration = timeEnd1-timeBegin1;
print "Transmission: type of traffic " flow1 ;
print - Total transmitted bits = totalBits1 bits;
print - duration = ... (2 Replies)
STRING1=JAVA
CONTENTS=$(awk -v x="$STRING1" '$0 ~ x { print ll } { ll = $0}' $LOGFILE | tail -150 | egrep "Jan |Feb |Mar |Apr |May |Jun |Jul |Aug |Sep |Oct |Nov |Dec " | cut -c6-1000 | tail -1)
When I run the above from a script, i get the following errors:
syntax error at -e line 1,... (1 Reply)
I've found this script which seems very promising to solve my issue:
To search and replace many different database passwords in many different (.php, .pl, .cgi, etc.) files across my filesystem.
The passwords may or may not be contained within quotes, single quotes, etc.
#!/bin/bash... (4 Replies)
I am getting the following error while passing parameter to a shell script called within awk script. Any idea what's causing this issue and how to ix it ? Thanks
sh: -c: line 0: syntax error near unexpected token `newline'
sh: -c: line 0: `./billdatecalc.sh ... (10 Replies)
Hello im new here... Im trying to read file and create folders from words in it but i get this for loop error
awk : line 3 : syntax error at or near for
my code is..
#!/bin/bash
begin
for (( i=1;i<=5;i++));
do
awk -v i=$i $0 { print $i }
mkdir $i
done
{print $i}
end {}
i have... (7 Replies)
Discussion started by: boxstep
7 Replies
LEARN ABOUT DEBIAN
hwloc-assembler-remote
HWLOC-ASSEMBLER-REMOTE(1) hwloc HWLOC-ASSEMBLER-REMOTE(1)NAME
hwloc-assembler-remote - Assemble multiple remote host topologies
SYNOPSIS
hwloc-assembler-remote [options] output.xml host1 host2 ...
OPTIONS --ssh <ssh>
Use the given ssh command (and options) to connect to remote hosts.
--lstopo-path <path>
Use the given path as the remote lstopo command when gathering remote topologies. By default, lstopo is taken from the PATH envi-
ronment variable.
--lstopo-opts <opts>
Pass the given lstopo options when gathering remote topologies.
--show Display the resulting topology before exit.
-v --verbose
Verbose messages.
DESCRIPTION
hwloc-assembler-remote is a frontend to hwloc-assembler. It takes care of retrieving the remote nodes' topologies before assembling them
with hwloc-assembler.
EXAMPLES
To assemble three nodes topologies:
$ hwloc-assembler-remote output.xml host1 host2 host3
To assemble the topology of a multi-process MPI job defined as a machinefile:
$ hwloc-assembler-remote output.xml `cat machinefile | sort | uniq`
RETURN VALUE
Upon successful execution, hwloc-assembler-remote returns 0.
hwloc-assembler-remote will return nonzero if any kind of error occurs, such as (but not limited to) failure to parse the command line.
SEE ALSO hwloc(7), lstopo(1), hwloc-assembler(1)1.4.1 Feb 27, 2012 HWLOC-ASSEMBLER-REMOTE(1)