06-27-2011
It's not working:
$ blc.pl >Test
bash: blc.pl: command not found
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
I am trying to use a here document to automate testing a perl script however when the perl script hits a system(perl subscript.pl) call, input is no longer entered into this subscript.
here is my script
$ cat test.sh
#ksh
for testcase
do
program <<-EOF | tee -a funcscnlog.log
y... (3 Replies)
Discussion started by: hogger84
3 Replies
2. Shell Programming and Scripting
Hi there,
It's pretty hard for me to explain my problem because I'm affraid I'm not using the correct vocabulary. So let me describe the situation. I wrote a script that has one argument. It works like this:
~$ cat /usr/local/bin/squote
echo "$@" | sed 's/'\''/'\''\\'\'\''/g; s/.*/'\''&'\''/g'... (2 Replies)
Discussion started by: chebarbudo
2 Replies
3. Shell Programming and Scripting
HI ,
I have a list1 which consists of data that i have to search and a list2 which has the files that need to be searched .So basically i am using list1 on list2 to see if list1 data is present if found replace it .I have written the code using foreach loop for each list .This is taking the... (1 Reply)
Discussion started by: madhul2002
1 Replies
4. Shell Programming and Scripting
Hi,
Am trying to store the user inputs into a file, but the below code will store only the first line of the values. I need to store all the user input values which may contain one or more lines. Thanks in advance.
echo "please enter file names";
read name;
echo $name>/tmp/test (11 Replies)
Discussion started by: rogerben
11 Replies
5. Shell Programming and Scripting
need a help to get a script:
bash # ./xx.sh
>> count
567
script will run the xx.sh and it will go to >> then run "count"
will get the result "567" and print it (7 Replies)
Discussion started by: Aditya.Gurgaon
7 Replies
6. Shell Programming and Scripting
Hi All,
I am writing a shell script.
#!/bin/bash
cat /etc/hosts
mkdir -p /var/tmp
mount 113.123.35.37:/vol/vol615/syb /var/tmp
In above script I am trying to add below predefined script/command (/var/tmp/db_tools)
This command in turn ask for user input, which will be always option... (17 Replies)
Discussion started by: madhur.baharani
17 Replies
7. Shell Programming and Scripting
Hi
I am trying to store the output of a command into an array in perl script.
I am able to store but the problem is i am unable to print the array line with one line space. i mean i inserted the \n in loop ...but not getting the result.
I have written like this
#!/usr/bin/perl
@a =... (2 Replies)
Discussion started by: kumar85shiv
2 Replies
8. Shell Programming and Scripting
Hi, i want to print 2nd column value with the below script. I need to take input of the string i need to search in that file and file name. How can i take these two as inputs? using read command? Getting error for below script.
echo "enter SID"
read SID
echo "enter filename"
read filename... (8 Replies)
Discussion started by: sam_bd
8 Replies
9. Shell Programming and Scripting
Need a bash script that will ask the user: Which Files Would you like to copy?
Then the user would input the filenames (space seperated, all lowercase)
The script would then cp each file to /data/backup/ and also wc the files to std output. (to see how many lines each file has)
Should go... (5 Replies)
Discussion started by: ajp7701
5 Replies
10. UNIX for Beginners Questions & Answers
Here I am in a position to write a Unix Shell script(.sh) to remove MongoDB collection documents. I know how to remove based on a condition like below and it works for me.
eval 'db.Collection.remove({TimeStamp:{$lte: "'$var'"}})
But I need to change the remove statement based on a new parameter... (1 Reply)
Discussion started by: senthilmadhanT
1 Replies
LEARN ABOUT DEBIAN
attrbox
cdk_draw(3) Library Functions Manual cdk_draw(3)
NAME
cdk_draw - Cdk Drawing Functions
SYNOPSIS
cc [ flag ... ] file ... -lcdk [ library ... ]
#include <cdk.h>
void boxWindow (
WINDOW *window,
chtype attr);
void attrbox ( WINDOW *win,
chtype tlc,
chtype trc,
chtype blc,
chtype brc,
chtype horz,
chtype vert,
chtype attr);
void drawObjBox (
WINDOW *win,
CDKOBJS *object);
void drawLine (
WINDOW *window,
int startx,
int starty,
int endx,
int endy,
chtype line);
void drawShadow (
WINDOW *shadowWin);
void writeBlanks (
WINDOW *window,
int xpos,
int ypos,
int align,
int start,
int end);
void writeChar (
WINDOW *window,
int xpos,
int ypos,
char *string,
int align,
int start,
int end);
void writeCharAttrib (
WINDOW *window,
int xpos,
int ypos,
char *string,
chtype attr,
int align,
int start,
int end);
void writeChtype (
WINDOW *window,
int xpos,
int ypos,
chtype *string,
int align,
int start,
int end);
void writeChtypeAttrib (
WINDOW *window,
int xpos,
int ypos,
chtype *string,
chtype attr,
int align,
int start,
int end);
DESCRIPTION
These functions perform useful drawing and attribute operations.
AVAILABLE FUNCTIONS
boxWindow
draw a box with on the window win. Like attrbox, this function ORs attr with each character as it draws the box.
attrbox
draw a box with on the window win letting the caller define each element of the box.
The parameters tlc, trc, blc, brc are used for the top-left, top-right, bottom-left and bottom-right corners respectively. The param-
eters horz and vert are used for the horizontal and vertical sides of the box. Any of these parameters may be zero. In that case,
the function skips the corresponding element of the box.
The function ORs attr with each character as it draws the box.
drawObjBox
Draw a box around the given window win using the object's defined line-drawing characters.
drawLine
draw a line on the given window.
The parameters starty, startx are the starting coordinates. The parameters endy, endx are the ending coordinates. The function
writes the data in line to each coordinate in that range including the start/end coordinates.
The function handles lines other than vertical or horizontal, but normally it is used for that, e.g., with line set to ACS_HLINE or
ACS_VLINE.
drawShadow
draw a shadow on the right and bottom edges of a window.
writeBlanks
write a string of blanks, using writeChar. The parameters are passed to writeChar as is. There is no corresponding writeBlanksAttrib
function.
writeChar
writes out a char * string without adding attributes. The parameters are passed to writeCharAttrib as is.
writeCharAttrib
writes out a char * string with the given attributes added. The string is written to the given window, using its relative screen
coordinates ypos and xpos. Compare with writeChtypeAttrib, which writes a chtype * string.
The function ORs the attribute attr with each item from the string. For instance, it may be A_BOLD. The align parameter controls
whether it is written horizontally (HORIZONTAL) or vertically (VERTICAL).
Finally, only a subset of the string is written, i.e., from indices start to end.
writeChtype
writes out a chtype * string without adding attributes. The parameters are passed to writeChtypeAttrib as is.
writeChtypeAttrib
writes out a chtype * string with the given attributes added. The string is written to the given window, using its relative screen
coordinates ypos and xpos. You would normally construct the string from a char * string using char2Chtype (3).
The function ORs the attribute attr with each item from the string. For instance, it may be A_BOLD. The align parameter controls
whether it is written horizontally (HORIZONTAL) or vertically (VERTICAL).
Finally, only a subset of the string is written, i.e., from indices start to end.
SEE ALSO
cdk(3), cdk_util(3)
cdk_draw(3)