10 More Discussions You Might Find Interesting
1. Programming
In my further exploration of Arduino, today I decided to install the arduino-cli on my mac today.
https://github.com/arduino/arduino-cli
I followed the instructions for macOS but when I got to this part:
arduino-cli board list
I got the dreaded "Unknown" Fully Qualified Board Name... (1 Reply)
Discussion started by: Neo
1 Replies
2. Shell Programming and Scripting
I am trying to check multiple server's "uptime" in a loop over "ssh".
When I execute multiple ssh commands with hard coded servernames script is executing fine.
But when I pass server names using while loop, script is exiting after checking first server's status, why?
# serverList... (8 Replies)
Discussion started by: kchinnam
8 Replies
3. Shell Programming and Scripting
Hi
I am quite new to scripting and cannot work out how to do the following -
I want to pipe to a log file and then use the "last statement error" in an if statement after, and this doesn't work because it checks the pipe statement instead of the script.
Example:
executteTheScript $var |... (4 Replies)
Discussion started by: erjorgito
4 Replies
4. Shell Programming and Scripting
Hi,
I know that export command is used to set environment variable.
Can you please explain what ":--100" in the below command is doing?
export ROWSTOLOAD=${ROWSTOLOAD:--100}
Thanks,
Gangadhar (5 Replies)
Discussion started by: Gangadhar Reddy
5 Replies
5. Shell Programming and Scripting
E:\>perl -00ne 'push @a,"$_\0$ARGV\n";END{print reverse split/\0/ for sort @a}' file1-obj_prof.out.txt file2-obj_prof.out.txt'
Can't find string terminator "'" anywhere before EOF at -e line 1. (6 Replies)
Discussion started by: richsark
6 Replies
6. Shell Programming and Scripting
I have a file $I_FILE that I need to filter and store the 1st and the 9th columns in another file $O_FILE.
With this in Perl,
system ("awk -F, '{print \$1, \$9}' \$I_FILE | sed '\/^\$\/d' > O_FILE");
I get:
4096045055
The first line in I_FILE is:... (5 Replies)
Discussion started by: looza
5 Replies
7. Shell Programming and Scripting
I need to get the line number for a line, but I don't know where the file the line will appear.
The line is always constant, but appears in different places.
ie
abc
bcd
cde
fff
aaa
bbb
ccc
ddd
and I would need the line number for fff, any help on this would be greatly appreciated. (2 Replies)
Discussion started by: hidachab
2 Replies
8. Shell Programming and Scripting
Hi
#!/bin/sh
user=$1
if " -eq 0 ]
echo "No"
else
echo "Yes"
fi
I'm not quite sure whats wrong with this but I know its something silly.
Any ideas?
Thanks (9 Replies)
Discussion started by: c19h28O2
9 Replies
9. UNIX for Dummies Questions & Answers
Hi there,
I'm trying to find files that are greater then 30 days old, zip them and move to a different directory. I'm encountering an issue passing a variable (FilesToFind) to name within the find command. Here's the code I'm running:
#! /usr/bin/sh
FileDir=/home/ariba... (2 Replies)
Discussion started by: ParNone
2 Replies
10. Solaris
What fonts are installed on a Solaris 8? I have no GUI so a command line command would be great. Thank you (2 Replies)
Discussion started by: Acleoma
2 Replies