05-16-2019
The single quotes keep the shell from expanding th variable. Try double quotes instead. If the single quotes are needed, double quote those.
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
EDIT: Nevermind, called a friend who is good at this stuff and he figured it out :D
Hi all,
So I'm trying to teach myself to write programs for unix in c. I am currently creating a program, and I need to pass a struct through a pipe, but I can't figure out how.
The struct I want to pass... (0 Replies)
Discussion started by: twnsfn34
0 Replies
2. Solaris
Hello,
I recently upgraded our server from Solaris 8 to 9. The sendmail is unabled to pipe the email to a perl script. I can send and received email to local and external mail, but the script did not get the email. There is no error in the log and I could not find any thing on the web.
Here... (0 Replies)
Discussion started by: ld98
0 Replies
3. Shell Programming and Scripting
I have an Shell script which has few global variables
eg :
range=100;
echo "$range"
I want to use the same variable in my C++ program for example
int main()
{ cout << range << "\n"; }
i tried using this
int main(int argc, char *argv)
{ cout << range << "\n"; }
but... (5 Replies)
Discussion started by: shashi792
5 Replies
4. Programming
Hello guys,
my professor give me 2 days to study and make a program usign pipe, fork in c
i need to do a program
read a arq.txt
the father process read the file and the child print !
like this
#include <stdio.h>
#include <stdlib.h>
#include <sys/wait.h>
int main (){
... (1 Reply)
Discussion started by: beandj
1 Replies
5. Homework & Coursework Questions
Hello guys,
my professor give me 2 days to study and make a program usign pipe, fork in c
i need to do a program
read a arq.txt
the father process read the file and the child print !
2. Relevant commands, code, scripts, algorithms:
like this
Code:
#include <stdio.h>... (1 Reply)
Discussion started by: beandj
1 Replies
6. Shell Programming and Scripting
Hi all,
I would like to use properly an input pipe, like this :
cat myFile.txt | myCommand.shI always find this solution :
while read line; do ...; donebut I have a great lost of performance !
On a big file, with a simple grep, I can spend 2400 times more time ! oO
(from 0,023sec to 1m)... (4 Replies)
Discussion started by: LeNouveau
4 Replies
7. Shell Programming and Scripting
Hi,
I would like to compare 2 files using awk, which I can do by using:
awk 'NR==FNR{a;next} (NR > 32 && $2 in a) {print $0}' File1 and File2.
If the name of the File1 is in another file (for example, column 4 in File 3) then how can I pass this column 4 to the awk command.
Thanks in... (1 Reply)
Discussion started by: ezhil01
1 Replies
8. Shell Programming and Scripting
I have a shell program that calls another shell program
the following code works
. chkTimeFormat.sh "10/9/12 17:51:19:783."|read c
but when I am passing the the time in a variable like in the code below, the shell chkTimeFormat.sh is not returning proper value
time="10/9/12... (9 Replies)
Discussion started by: swayam123
9 Replies
9. UNIX for Advanced & Expert Users
I have a below syntax its working fine...
var12=$(ps -ef | grep apache | awk '{print $2,$4}')
Im getting expected output as below:
printf "%b\n" "${VAR12}"
dell 123
dell 456
dell 457
Now I wrote a while loop.. the output of VAR12 should be passed as input parameters to while loop and results... (5 Replies)
Discussion started by: sam@sam
5 Replies
10. Shell Programming and Scripting
Hello,
I have an ffmpeg bash script which is working nice and
I need to do the same for other sources.
To create new scripts and to deal with multiple bash files sounds not logical. It is a bit hard to manage for me..
I wondered if it was possible to make my input file as variable.
Then I... (1 Reply)
Discussion started by: baris35
1 Replies
BEL(1) BEL(1)
NAME
bel - open a shell or execute a command on a remote computer through several machines
SYNOPSIS
bel [-e file] [-s file] [-d delay]
DESCRIPTION
bel generates a script allowing the user to open a shell or execute a command on a remote computer through several machines. In order to
generate the script, the user gives the paths to the different machines until the final one is reached. Several paths may be specified in a
single entry file or through the standard input.
OPTIONS
-e, --entree=FILE
Provide the necessary information to establish the tunnel between the source and the final computer.
-s, --repertoire-sortie=DIRECTORY
The directory where you want to put the generated scripts.
-d, --delai=SECONDS
Delay to wait before each sent command, in seconds.
AUTHOR
Carl Chenet <chaica@ohmytux.com[]>
RESSOURCES
Belier homepage : http://www.ohmytux.com/belier
LICENSE
Copyright (C) <2009> <Carl Chenet>This program is free software: you can redistribute it and/or modify it under the terms of the GNU
General Public License as published by the Free Software Foundation, either version 3 of the License or any later version. This program is
distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public
License along with this program. If not, see <http://www.gnu.org/licenses/>.
05/16/2009 BEL(1)