RHEL - Shell Script not working


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting RHEL - Shell Script not working
# 1  
Old 11-28-2010
RHEL - Shell Script not working

Hello Unix Mates

I have a problem my script is not working, can anyone tell what is rung with it?
Code:
#!/bin/sh
wget "http://download.divx.com/labs/divx611-20060201-gcc4.0.1.tar.gz"
tar zxf divx611-20060201-gcc4.0.1.tar.gz
./divx611-20060201-gcc4.0.1/install.sh

Error:

Code:
-2010-11-28 21:25:06--  http://download.divx.com/labs/divx611-20060201-gcc4.0.1.tar.gz%0D
Resolving download.divx.com... 81.167.38.41, 81.167.38.59
Connecting to download.divx.com|81.167.38.41|:80... connected.
HTTP request sent, awaiting response... 404 Not Found
Cookie coming from download.divx.com attempted to set domain to download.divx.com
2010-11-28 21:25:07 ERROR 404: Not Found.

tar: divx611-20060201-gcc4.0.1.tar.gz\r: Cannot open: No such file or directory
tar: Error is not recoverable: exiting now
tar: Child returned status 2
tar: Exiting with failure status due to previous errors
: not found ./divx611-20060201-gcc4.0.1/install.sh

# 2  
Old 11-28-2010
So the error message has told you what's the problem. The gz file can't be found on the http server.

Code:
2010-11-28 21:25:07 ERROR 404: Not Found.

Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. UNIX for Beginners Questions & Answers

Bash - here document on RHEL 6.8 and 6.9 servers aren't working

H Forum, I was thankful in getting help from this post that allowed me to connect to multiple severs at once using here documents to gather data into variables. But I've discovered that the same bash command that works on my RHEL 7 servers do not work on RHEL 6? What's strange about my... (4 Replies)
Discussion started by: greavette
4 Replies

2. UNIX for Advanced & Expert Users

Syslog-ng not working not collecting logs on rhel

Hi, I need help on syslog-ng on RHEL 7.2. It is working as expected. As per configuration, it is supposed to create authlog, messages and xymessages daily in respective folder of date. But I can see only messages file and that is also not updating well. # ps -ef | grep -i syslog root 22954... (1 Reply)
Discussion started by: solaris_1977
1 Replies

3. Red Hat

Network Teaming not working in RHEL/CentOS 7

I was testing Networking Teaming (activebackup) with a VM hosted on VmWare Workstation and VirtualBox, and the result is, if the active interface is down, the system is not using the backup interface. Tested on both CentOS / RHEL 7 Please find below the command I have used to configure teaming.... (0 Replies)
Discussion started by: atanubanerji
0 Replies

4. Red Hat

RHEL 7: Backup Space and Delete is not working in console

Hi All, During my virtual machine power on i have rc3.d script to accept user inputs like IP address. This script gets executed during first time boot up. It was working fine till my VM is using RHEL6.5. Now we migrated to RHEL 7 environment. While accepting the user inputs in console, I... (4 Replies)
Discussion started by: kalpeer
4 Replies

5. Shell Programming and Scripting

Cp not working in shell script but running perfectly from shell

Dear All, I have script. Dest="" IFS=' ' for translation in $(echo $MY_MAP) do t1=$(echo $translation | cut -d"=" -f1) t2=$(echo $translation | cut -d"=" -f2| cut -d"," -f1) if then Dest=$UNX/$u_product_path/$u_study_path/$UNXTR/$t2 break; ... (4 Replies)
Discussion started by: yadavricky
4 Replies

6. Shell Programming and Scripting

Shell script not working

. /home/bscs6/.kshrc set -x monthy=`date +%m` daty=`date +%d` yeary=`date +%Y` cd /home/bscs6/scripts sqlplus sysadm/sysadm@SEGODI @lms_profile.sql mv /home/bscs6/scripts/lmsprofile.log /home/bscs6/scripts/LMS_PROFILE_DUMP_$daty$monthy$yeary.txt gives me the error below: LMS_PROFILE.sh:... (3 Replies)
Discussion started by: malefho
3 Replies

7. Red Hat

Apple's Magic Mouse scrolling not working in RHEL 6

I'm running Red Hat Enterprise Linux (RHEL) Workstation release 6.4 (Santiago) and kernel 2.6.32-358.11.1.el6.x86_64. The list of loaded kernel modules is shown below. Although Apple's Magic Mouse is correctly connected via Bluetooth and the right and left buttons are working as expected, the... (2 Replies)
Discussion started by: web_knows
2 Replies

8. Shell Programming and Scripting

expect script inside shell script not working.

Shell Scipt: temp.sh su - <$username> expect pass.exp Expect script: pass.exp #!/usr/bin/expect -f # Login ####################### expect "Password: " send "<$password>\r" it comes up with Password: but doesnt take password passed throguh file. (2 Replies)
Discussion started by: bhavesh.sapra
2 Replies

9. Shell Programming and Scripting

Perl script 'system' linking to local shell script not working

Trying to figure out why this works: printpwd.pl #!/usr/bin/perl use CGI::Carp qw( fatalsToBrowser ); print "Content-type: text/html\n\n"; $A = system("pwd"); $A = `pwd`; print "$A\n"; ^^actually that works/breaks if that makes any sense.. i get the working directory twice but when... (5 Replies)
Discussion started by: phpfreak
5 Replies

10. Shell Programming and Scripting

shell script is not working..

Dear all, I am writing simple shell script. #/bin/bash ORACLE_HOME=/home/app/oracle/product/9.2.0 export ORACLE_HOME export ORACLE_SID=DATX $ORACLE_HOME/bin/sqlplus -s datadmin/password <<EOF execute testproc; exit; EOF ~ ~ In the above shell script, the oracle instance name is... (2 Replies)
Discussion started by: govindts
2 Replies
Login or Register to Ask a Question