7 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
I am not able to execute bash script on Fedora. They were running on another environment. This is a sample script:
#!/usr/bin/bash
input="./data/heu/hout1"
i=1
j=0
while IFS= read -r file1
do
#Some code here
done < "$input"
#echo $j
I get an error:
bash: s.sh: command not... (3 Replies)
Discussion started by: ngabrani
3 Replies
2. UNIX for Dummies Questions & Answers
I am having output in this format..
-rw-r--r--
1
root
root
20
Jan
01
14:32
abc.txt
-rw-r--r--
1
root
root
40
Jan
01
14:32
abcd.txt
-rw-r--r-- (9 Replies)
Discussion started by: bhargav456
9 Replies
3. Shell Programming and Scripting
I have two shell scripts in the different directories listed below,
/root/dev/dir1/test.sh
/root/dev/dir2/master.sh
I am executing the master.sh script from the test.sh like below and getting 'Permission denied' error.
#! /bin/sh
#test.sh
path='/root/dev'
$path/dir2/master.sh
But it... (2 Replies)
Discussion started by: vel4ever
2 Replies
4. Ubuntu
I have Solr 1.4 running on Tomcat6 installed in an Ubuntu 10.04 LTS openVZ container. I am looking for documentation on Solr. I need to know where Solr and Tomcat do their logging by default when installed from the standard Ubuntu apt repo. I would like to know more about both technologies but Solr... (0 Replies)
Discussion started by: Druonysus
0 Replies
5. Shell Programming and Scripting
Hi,
I have a cron job which executes daily once 9 PM.
The script is like
if
then
TYPE=OC
elif
then
TYPE=i
elif
then
TYPE=mmc
elif
then
TYPE=CB
elif
then
TYPE=oth
fi (1 Reply)
Discussion started by: surjyap
1 Replies
6. UNIX for Dummies Questions & Answers
Hello everybody, iam new to unix. here is a question i had.
when i run errpt -a , sample out put is as follows
LABEL: FCP_ARRAY_ERR4
IDENTIFIER: D5385D18
Date/Time: Mon Sep 25 11:15:59
Sequence Number: 182869
Machine Id: 000166784C00
Node Id: ... (0 Replies)
Discussion started by: karthikosu
0 Replies
7. Shell Programming and Scripting
#!/bin/sh
read a
if ; then
echo "ur good";
else
echo "ur bad"
exit
fi
I am getting the following error!
/home/xyz/scripts >help.sh
apple
help.sh: [apple: not found.
ur bad
can i know what would be the wrong in my script (3 Replies)
Discussion started by: gkrishnag
3 Replies