10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
code:
IMAGE=$imgvalue;
if
then
echo DO=ABC;
elif
then echo DO=ETC;
elif
then echo DO=XYZ;
else
echo "$imgvalue is unsupported";
exit 1;
fi
in above script IMAGE=1 , IMAGE=2, IMAGE=3 whatever may be the value i have assigned it's showing only DO=ABC other conditions... (7 Replies)
Discussion started by: saku
7 Replies
2. Shell Programming and Scripting
I'm working on a script that will search through a directory for MKV files and remux them to MP4. I found a few other scripts around the net that do this, but they all have limitations that don't always get the job done. The main limitation I've found is that most scripts look for the video track... (2 Replies)
Discussion started by: rayne127
2 Replies
3. Shell Programming and Scripting
Hello , i am using RHEL5 , i have got a perl script that executes and sends an email correctly if i run it with ./sendemail.sh command. This is the script below
#! /usr/bin/perl
use Net::SMTP;
print "starting email send .";
$smtp = Net::SMTP->new("192.168.0.1");... (2 Replies)
Discussion started by: kabazzi
2 Replies
4. Solaris
Hi all.
I am seeing in one of our less-used servers that it crashed and now won't restart. I get the message 'continue with normal startup or boot into maintenance mode'.
I go into maintenance and run fsck on /usr0 (mentioned in error at restart) it then reboots but goes right back to... (3 Replies)
Discussion started by: jamie_collins
3 Replies
5. Solaris
I am new to Sun.
I brought Sun Fire 280R to practice UNIX. What are the requirements for the monitor/CRT? Will it burn out old non-Sun CRTs? Does it need LCD monitor?
Thanks. (3 Replies)
Discussion started by: bramptonmt
3 Replies
6. UNIX for Dummies Questions & Answers
Hi All,
I am using mysql at sun solaris unix(Hp) server. I logged into mysql server with root as user. its logged in properly. Then i used 'show databases' mysql command. its display all the available databases.
for example
mysql > show databases;
It displayed as follows.
exampledb1... (1 Reply)
Discussion started by: dbsurf
1 Replies
7. Shell Programming and Scripting
Hi all,
I am running a script on bash shell, although it gives me the desired output, it displays some errors at the prompt like
this directory doesnt exists
unary operator
etc etc
Is there someway to avoid these errors ??
Its very annoying to have these errors while the script is... (4 Replies)
Discussion started by: vikas027
4 Replies
8. UNIX for Dummies Questions & Answers
Hey there,
I am starting a Computer Science Foundation year at the end of this month and am trying to get a little bit ahead of the game. I have always wanted to learn Unix and am currently struggling with creating a boot disc to run Solaris (I have chosen to study this) from as opposed to... (0 Replies)
Discussion started by: Jupiter
0 Replies
9. Solaris
Hello,
Case: If I want to run a script background and logout, which command should I use ?
1)# ./script_name &
2)# nohup script_name
3)# nohup script_name &
And any differences ?
What happens if I redirect the output to a file?
I learned somewhere that the (1) format will stop... (5 Replies)
Discussion started by: billshu
5 Replies
10. Programming
Hi,
I tried a simple hello.cc program in Unix.
- Compiled with no errors
- Created a.out successfully
- While executing a.out, following error message appeared
" ld.so.1:a.out fatal: libstdc++.so.2.10.0: Open failed: No such file or directory Killed"
... (1 Reply)
Discussion started by: nirthana
1 Replies