Sponsored Content
Top Forums Shell Programming and Scripting how to write bash script that will automatically extract zip file Post 302685315 by RudiC on Sunday 12th of August 2012 04:02:10 AM
Old 08-12-2012
Are you sure the error msgs come from your script?
Code:
CURRENDIR=/home/kernel-downloader
cd $CURRENDIR

should give sth like cd: /home/kernel-downloader: No such file or directory if really missing.
Btw, rm $CURRENDIR/zipfiles should fail as well then.

wget downloads to the current directory, so in your case to wherever you were before you cd'd to somewhere else. So it's likely no .zip files are found making ls fail with your second err msg.

Aside, $? will NOT retain its contents but will be overwritten with the result of every single command you issue. If you need it later (... not found ...), save it to a variable immediately after the command that you are evaluating.
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

need help to write script to check the process health and automatically restart it

I am working on a project, which need to constantly watch the process, and check its status, if it was dead, it should be restart automatically. Please kindly refer me to URL which teach how to write this kind of script, or service. Thanks. (1 Reply)
Discussion started by: dragondad
1 Replies

2. Shell Programming and Scripting

Extract lines from a file automatically. Please a Help

hello, hope you can help me: ive got a file called archivos The content or structure of this file is ./chu0/filechu ./chu1/filechu I extract each line from this file manually and redirect to a file, and it Works fine, so the command line is: awk ‘/chu0/ {print $0}' < archivos >... (8 Replies)
Discussion started by: alexcol
8 Replies

3. Shell Programming and Scripting

how to extract paragraphs from file in BASH script followed by prefix ! , !! and !!!

I]hi all i am in confusion since last 2 days :( i posted thraed yesterday and some friends did help but still i couldnt get solution to my problem let it be very clear i have a long log file of alkatel switch and i have to seperate the minor major and critical alarms shown by ! , !! and !!!... (6 Replies)
Discussion started by: nabmufti
6 Replies

4. Shell Programming and Scripting

How to write bash script to explode multiple zip files

I have a directory full of zip files. How would I write a bash script to enumerate all the zip files, remove the ".zip" from the file name, create a directory by that name and unzip each zip file into its corresponding directory? Thanks! Siegfried (3 Replies)
Discussion started by: siegfried
3 Replies

5. Shell Programming and Scripting

To write a shell script which groups files with certain pattern, create a tar and zip

Hi Guru's, I have to write a shell script which groups file names based upon the certain matching string pattern, then creates the Tar file for that particular group of files and then zips the Tar file created for the respective group of files. For example, In the given directory these files... (3 Replies)
Discussion started by: rahu_sg
3 Replies

6. Shell Programming and Scripting

script that will automatically extract

how do i write a script that will automatically extract rar files after the download in a particular folder? can you give me an idea please? :D or is there an existing script for this? (3 Replies)
Discussion started by: garfish
3 Replies

7. Shell Programming and Scripting

How to write a script to extract strings from a file.

Hello fourm members, I want to write a script to extarct paticular strings from the all type of files(.sh files,logfiles,txtfiles) and redirect into a log file. example: I have to find the line below in the script and extract the uname and Pwds. sqsh -scia2007 -DD0011uw01 -uciadev... (5 Replies)
Discussion started by: rajkumar_g
5 Replies

8. Shell Programming and Scripting

How to write a shell script to automatically accept return key with out user intervention?

Hi Friends, i am creating a shell script which is accepting file name as input parameter from Java and invoking finacle service. The service will accpet text file,B2k_session id,etc and upload the text file data in finacle database. My shell script looks like this:- #! /bin/ksh... (2 Replies)
Discussion started by: vadlamudy
2 Replies

9. UNIX for Dummies Questions & Answers

Write pid and command name to a txt file while executing a bash script

Hi All, Just have a requirement, I am executing a bash shell script, my requirement is to catch the pid and job name to a txt file in the same directory, is there anyway to do it? please help me out. Regards Rahul ---------- Post updated at 08:42 AM ---------- Previous update was at... (2 Replies)
Discussion started by: rahulkalra9
2 Replies

10. UNIX for Dummies Questions & Answers

Script to break up file (write new files) in bash

Hello experts, I need help writing individual files from a data matrix, with each new file being written every time there is a blank line: From this cat file.txt col1 col2 col3 6661 7771 8881 6661 7771 8881 6661 7771 8881 col1 col2 col3 3451 2221 1221... (6 Replies)
Discussion started by: torchij
6 Replies
dillo(1)							   USER COMMANDS							  dillo(1)

NAME
dillo - web browser SYNOPSIS
dillo [OPTION]... [--] [URL|FILE]... DESCRIPTION
Dillo is a lightweight graphical web browser that aims to be secure. It handles HTTP internally, and FILE, FTP, and DATA URIs are handled through a plugin system (dpi). In addition, INSECURE HTTPS support can be enabled. Both FTP and Dillo's download manager use the wget(1) downloader. Dillo displays HTML, text, PNG, JPEG, and GIF files. It handles cookies, HTTP authentication (basic and digest), proxying (basic), and some CSS. Framesets are displayed as links to frames, and there is currently no support for javascript or video. OPTIONS
-f, --fullwindow Start in full window mode: hide address bar, navigation buttons, menu, and status bar. -g, --geometry GEO Set initial window position where GEO is WxH[{+-}X{+-}Y]. -h, --help Display this help text and exit. -l, --local Don't load images for these URL(s). -v, --version Display version info and exit. -x, --xid XID Open first Dillo window in an existing window whose window ID is XID. EXIT STATUS
0 No error. 1 Internal error. 2 Error in command line arguments. ENVIRONMENT
HOME (or HOMEDRIVE and HOMEPATH on Cygwin) User's home directory. http_proxy URL of proxy to send HTTP traffic through. FILES
dpid Dillo plugin daemon dpidc Control program for dpid. ~/.dillo/bm.txt User bookmarks ~/.dillo/certs/ Saved certificates for HTTPS. ~/.dillo/cookies.txt Stored cookies ~/.dillo/cookiesrc Cookie settings ~/.dillo/dillorc Configuration file. ~/.dillo/dpid_comm_keys Keys used in dpi daemon communication. ~/.dillo/dpidrc Contains name of directory containing dpis, and associates dpi files with protocols. ~/.dillo/keysrc Keybindings. ~/.dillo/style.css User style sheet SEE ALSO
wget(1) Dillo website: http://www.dillo.org October 13, 2011 dillo(1)
All times are GMT -4. The time now is 04:53 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy