10 More Discussions You Might Find Interesting
1. UNIX for Advanced & Expert Users
i having this error message when installing a package using yum on red hat 7.2
Please see attachment (21 Replies)
Discussion started by: DOkuwa
21 Replies
2. HP-UX
Hi,
When I run the command "print_manifest | grep "Main Memory", I get the note :
# /opt/ignite/bin/print_manifest | grep "Main Memory"
NOTE: Could not read the /etc/resolv.conf file.
Main Memory: 196498 MB
#
How do I suppress the part :
NOTE: Could not read the... (4 Replies)
Discussion started by: anaigini45
4 Replies
3. Shell Programming and Scripting
Hi,
I am running a script sample.sh in bash environment .In the script i am using sed and awk commands which when executed individually from terminal they are getting executed normally but when i give these sed and awk commands in the script it is giving the below errors :-
./sample.sh: line... (12 Replies)
Discussion started by: satishmallidi
12 Replies
4. Shell Programming and Scripting
Hi Team,
I am using one script, It is working fine, the problem is it gives unwanted telnet errors when I am using it.
I just want to remove these unwanted errors/info from my screen.
bash-3.00$ cat raza_site_temp
#!/usr/bin/bash
#rj835b
IFS="|"
REGEX="$*"
echo
snarf2 -c "show... (1 Reply)
Discussion started by: Raza Ali
1 Replies
5. UNIX for Dummies Questions & Answers
Hello, Unix-Board!
Normally, I would hide error messages in a shell script with
command 2> path
but test also prints out errors if I do that.
The code of the script is (please don't tell me about bad coding :)):
echo "Enter a number here"
read number
test $number -ge 0 && echo... (2 Replies)
Discussion started by: intelinside
2 Replies
6. Programming
Hi Guys,
Hope everyone is fine :)
I have this code below:
#!/usr/bin/perl
$num_of_files=`ls | grep -v remover | wc -l`;
$remover=`ls -lrt | grep -v total | grep -v remover | head -1 | awk '{print $8}' | rm \`xargs\``;
if ($num_of_files>3) {
system ($remover);
}
When I... (3 Replies)
Discussion started by: rymnd_12345
3 Replies
7. Shell Programming and Scripting
I am trying to find the number of files whose name starts with uni.
Below is the code but it is giving error. :confused:
#!/bin/csh
FILES_NAME ='files_list';
FILE_NAME_PATTERN = 'uni*';
NO_OF_FILES;
ls -l $FILE_NAME_PATTERN > $FILES_NAME ;
NO_OF_FILES = `wc -l $FILES_NAME`;
echo... (3 Replies)
Discussion started by: hiten.r.chauhan
3 Replies
8. Shell Programming and Scripting
Okay, title is kind of confusion, but basically, I have a lot of scripts on a server that I need to replace a ps command, however, the new ps command I'm trying to replace the current one with pipes to sed at one point. So now I am attempting to create another script that replaces that line.
... (1 Reply)
Discussion started by: cbo0485
1 Replies
9. UNIX for Advanced & Expert Users
Hi all, I have major errors on entering the shell. On login I get:
-bash: dircolors: command not found
-bash: tr: command not found
-bash: fgrep: command not found
-bash: grep: command not found
-bash: grep: command not found
-bash: id: command not found
-bash: #
root@host # pwd
/bin... (0 Replies)
Discussion started by: wcmmlynn
0 Replies
10. UNIX for Advanced & Expert Users
$ errpt | more
IDENTIFIER TIMESTAMP T C RESOURCE_NAME DESCRIPTION
3074FEB7 0802050205 T H fscsi1 ADAPTER ERROR
B8113DD1 0802050205 T H fcs1 LINK ERROR
B8113DD1 0802050205 T H fcs1 LINK ERROR
3074FEB7 0802050205 T H fscsi0 ADAPTER ERROR
B8113DD1 ... (0 Replies)
Discussion started by: mcastill66
0 Replies