General :: What Is Great Book To Start Learning Scripting In Bash?

Apr 23, 2010

I've been switched to a new department at work and am totally clueless when it comes to scripting in bash. When I told them I was a fast learner, I didn't think they'd throw me into the deep end of the pool so fast. So to make a long story short. What is a great book to start learning scripting in bash? My supervisor already gave me a simple task to do. Conceptually it sounds quite easy in my head, but actually writing out a script is a bit more daunting and complexed than I first thought.

View 3 Replies


ADVERTISEMENT

General :: Need Efficient Pdf Book / Documentation For Learning Scripting

Jun 10, 2010

I am very new in linux/aix scripting. I request you all to give me efficient pdf book or documentation for learning scripting.

View 2 Replies View Related

Ubuntu :: Start Learning GUI Bash Scripting But Can't Find The Right Tutorial?

Sep 30, 2010

I want to start learning GUI bash scripting but I can't find the right tutorial. I'm interesting at creating menus like ex. IPTRAF or MC (midnight commander) but all i find is tutorials for KDE & GNOME. The idea is that I want to create programs that don't need X sessions.

View 2 Replies View Related

Ubuntu :: Where To Start Learning Scripting?

Jan 5, 2010

I have been using Ubuntu for about a year now, for my Home PC I have completely switched but still have windows on my wife's and work computers. I am in the data storage industry and have a good basic understanding of unix and linux. For my own learning I want to start learning some basic scripting where I can create simple things that make life easier like to become a beginer UNIX or linux admin..what should i start with...I just seem to be so overwhelmed cause there are some many things you dive into..I see so many types of scripting shells I don't know where I should start to learn the basics

View 4 Replies View Related

General :: Best Book For Learning Ubuntu?

Jun 23, 2010

Suggest me the best book for learning more about directories in ubuntu filesystem

View 5 Replies View Related

Ubuntu :: Pointers To Learning Scripting?

Apr 25, 2011

I have a project for my computer class, and I was a bit ambitious with my ideas and am wondering if I made a smart choice. I need to learn sooner or later anyway! I'm a beginner when it comes to scripting but I'd like to learn more advanced stuff. When I say basic I really mean basic among all basic. To give you an idea I only know some simple HTML and Python. The idea I proposed for my project goes as follows:

The challenge we were given is to create a spreadsheet of data from a website given to us. Points are given for creativity and simplicity in how we go about doing this.After taking a look at the site (or rather, html files given to us), and with having dabbled with Python before, I came up with what I thought was a pretty good idea.The pages of the "site" are just numbers. They go from 001-117 .html in terms of filenames. Their source code has some sort of table set up, and the information we are pulling off are easily found by the tags that precede them (the info, btw are the periodic elements).

The tags are pretty obvious, and state pretty much what they are labeling. My python knowledge is almost nonexistent but I figured that would be something Python would be capable of. Why do I post this here? I'm relatively new to Ubuntu too but keep hearing about bash scripts and such. Would this be even better? (Perhaps it's silly but I'd like to use Ubuntu to accomplish this)

Or is there an even better scripting method/language I should be using? Could anyone give me some pointers in how I could accomplish this? I'm really hoping to learn a lot from my first "real" scripting experience!

View 4 Replies View Related

General :: Start Learning Red Hat Take It As Career?

Apr 21, 2010

I want to start learning Red Hat Linux & take it as career. I'm in Bangalore, India. Can anyone tell me good Red Hat Linux training institutes in Bangalore (possible near BTM).

View 5 Replies View Related

General :: What Is Purpose Of Bash Scripting?

May 15, 2010

What is the purpose of bash scripting? Is it just for file manipulation?

View 4 Replies View Related

General :: How To Set Incrontab In Bash Scripting

Mar 7, 2011

I have a question;

Is it possible to set incrontab in bash script? I tried to set normal crontab and it works like a charm but unfortunately not "incrontab"

I have two bash files; test-incrontab.sh and addlinetocrontab.sh and here are the contents of these files respectively;

Code:

Code:

As you can see there are two enteries in each file. One for normal crontab and other one for incrontab. When i run "test-incrontab.sh" like following;

Code:

crontab works perfectly and i can see cron job set but for incrontab it just does not work. No error either!

I am only getting this back "table unchanged"

View 2 Replies View Related

General :: Bash Scripting - Grab First And Last Number?

Jan 13, 2011

I'm trying to get an output of a file in numeric order. Basically I need the starting number and the ending number in sed this into anther file. The test2.lis file I'm just awk'ing for the first row and if its out of order put it in order so I can grab the first and last numbers. I'm sure I can do this all in an array. The first sed command gets rid of blank lines and outputs it to a file. Then I head and tail for the first and last number then I want to sed those numbers into a file that exsist.

[code]...

The error I get is:

sed: -e expression #1, char 24: unterminated `s' command.

View 13 Replies View Related

General :: Bash Scripting / A Command That Can Stop Others?

Mar 31, 2010

i would like to ask something very simple i hope for most off you but i couldn't find anything in other questions so specific...

So...i need a command to stop another command.

more specific i have to run airodump-ng and i want this command to stop after some seconds (or minutes) automatically....

View 6 Replies View Related

General :: Combine Bash Scripting With Apache?

Apr 3, 2011

how to combine bash scripting with apache.

View 5 Replies View Related

General :: Bash Shell Scripting Request?

Feb 27, 2011

I am working on a simple script that should take two command line arguments, a [number] and a [name]. The first thing the script should do is check to make sure that no more and no less than two command line arguments have been entered when calling the script - an error message should be delivered if the condition is not true.

If two args have been entered, then the message 'processing "scriptname"' should appear, where scriptname is the name of the script being called. The script should then write to the screen "Hi [name]!", and should write this phrase [number] of times. For example, the command $ myscript 2 joe would produce the output: I have read the manual many times looking for examples, and I am very close by virtue of my own efforts. Further, I have searched these forums and others for good examples, which have also gotten me very close. Still my script is not completing the objective, and I am wondering if someone could point me in the right direction. Script:

[Code]...

View 13 Replies View Related

General :: Bash Scripting Auth Check For Pop3?

Mar 30, 2010

I need to make a bash scripting, based on a password and a user,that connect to pop3 server and see if it login,if you can,return ok, otherwise return ERR .

View 10 Replies View Related

General :: Bash Scripting - Removing Strings From MP3 Filenames

Oct 5, 2010

I've been surfing and searching the net quit a while now to make my own script, but I haven't been really successful ever since I want to make a script which can remove strings from my mp3 collection (file names).

For example:
Code:
101-bob_sinclar_feat_sean_paul-tik_tok_(radio_edit).mp3 --> bob_sinclar_feat_sean_paul-tik_tok_(radio_edit).mp3
10-Young Jeezy-Lose My Mind (78 Bpm) (Repack).mp3 --> young_jeezy-lose_my_mind.mp3

Now the problem is how can I remove the strings like:
101 & 10 (dynamic)
(%%% Bpm) (dynamic)
(Repack) (static)

View 11 Replies View Related

General :: Change Case Of A String (BASH Scripting)?

Jul 9, 2010

Is there any inbuilt functionality in Unix shell script so that i can able to convert lower case string input to an upper case? I dont want to use high level languages like java,python or perl for doing the job.

View 4 Replies View Related

General :: Write Either PYTHON Or Bash Shell Scripting?

Jun 4, 2010

I do not know how to write either PYTHON or Bash Shell Scripting. I am to learn one for Linux Administration purpose. Which one will you recommend for a Linux Admin/Eng environment?

View 4 Replies View Related

General :: Make Simple Website In System Using Bash Scripting?

Apr 3, 2011

How to made a simple website in linux using bash scripting.

View 3 Replies View Related

Programming :: Reading A Bash Variable In Bash Scripting ?

Nov 26, 2008

I have a config file that contains:

my.config:

Code:

Now in my bash script, I want to get the output /home/user instead of $HOME once read. So far, I have managed to get the $HOME variable but I can't get it to echo the variable. All I get is the output $HOME.

Here is my parse_cmd script:

Code:

View 3 Replies View Related

General :: Bash Scripting - Executes A Few Perl Scripts - Create A New Array And Take The Hostname

Apr 4, 2011

I'm writing a bash script that executes a few perl scripts. One of the perl scripts that I need to execute requires two arguments with it. The arguments are stored in a txt file, each line contains a hostname and its corresponding IP address separated by a ":" (colon), the txt file looks like this below:

[Code]...

I'm not sure if it's the best way to accomplish this but here it goes. In the bash file, let's call it getHosts.sh, I create an array and assign each line of the file to an element in that array. I then think I need to create a new array where I take the hostname (which is before the ":") separate it from its IP address and place the IP address on a new line just below the hostname (this way I can reference to it like $hostNames[$x] would be the hostname, and $hostNames[$x+1] would be its IP address). So the new array would now look like this below:

[Code]...

View 4 Replies View Related

General :: System Administration Scripting - Write Very Basic BASH Shell Scripts

Jan 10, 2011

I'd like to know some good resources, links, e-books to learn basic Linux system administration scripting. I know how to write very basic BASH shell scripts so I'm still at beginner level. There are so many docs out there that I'd like to narrow down people's opinion's on the best easy to understand resources that are available. Eventually I'd like to learn basic PERL as well.

View 3 Replies View Related

Debian :: BlueZ 4.60-1 Works Great And After A Week It Segfaults And Won't Start?

Apr 27, 2010

I have been using a ARM device with 512MB ram and flash to send messages via Bluetooth to everyone in the proximity. I am doing this with OpenProximity (Python) and it worked for the last week, it did stop for two times but since I didn't have time to find the cause, I just rebooted it (Windows style ) and it worked again, but suddenly it stopped working again last Saturday. When I did /etc/init.d/bluetooth restart it did not say it failed or something, but when I did /etc/init.d/bluetooth status it said "bluetooth is not running ... failed!". This is what I got in the syslog:

Code:
Apr 27 13:52:45 debian bluetoothd[31243]: Bluetooth daemon 4.60
Apr 27 13:52:45 debian bluetoothd[31243]: Starting SDP server
Apr 27 13:52:45 debian bluetoothd[31243]: Starting experimental netlink support
Apr 27 13:52:45 debian bluetoothd[31243]: Failed to find Bluetooth netlink family
Apr 27 13:52:45 debian bluetoothd[31243]: Failed to init netlink plugin
Apr 27 13:52:45 debian bluetoothd[31243]: Can't create GN bridge

[Code]...

You'll probably note that the first message is version 4.60 and the second one 4.63, this is because I tried to upgrade, but that did not work completely, but the error above is the same as first before the upgrade.

Don't know if it matters, but I am using Debian Squeeze and the output of uname -a is: Linux debian 2.6.32.2 #1 PREEMPT Fri Dec 18 22:54:28 MST 2009 armv5tel GNU/Linux. Hope someone know how this could happen suddenly, and even better, knows how to fix it

EDIT: Forgot to say, I am using a SENA Parani UD100 Bluetooth USB Adapter which uses the Toshiba Bluetooth stack.

UPDATE: It won't crash until the Bluetooth stick is inserted, so it should be a driver problem?

View 2 Replies View Related

General :: Start Script Bash When System Start Stop Reeboot?

Dec 10, 2009

I have 3 script BASH. I want start this script when the system start,stop and reeboot.

View 4 Replies View Related

General :: Bash Scripting - Sed - Lame - Character To Lame To Escape Spaces

Mar 20, 2010

Ok, so I find myself ripping audio CDs frequently, which I then lame to mp3's to put on my media player. I usually define the --ta and --tl (artist and album) ID3 tags and batch encode each album, but don't bother with the track tags as I'd have to do each one seperately.

So, I'm working on a script to do all this for me, extracting info from 'pwd' etc. to fill in the blanks for --ta, --tl and --tt (track name). All is working well, except that I can't get sed to pass on the "" character to lame to escape spaces.

Here's what I've got so far: (trouble spot is bolded - no need to pay attention to the rest of it)

Code:

All this does is pass a 'space' on to lame, which it takes as an invalid argument.

View 10 Replies View Related

Ubuntu :: Bash Scripting Gives Bad Substitution

Feb 18, 2011

I'm trying to get the substring of a string in bash. Here is the code:
Code:
#! /bin/bash
LOCAL_HOSTNAME=$(hostname)
echo $LOCAL_HOSTNAME
INDEX_OF=`expr index "$LOCAL_HOSTNAME" 1`
echo $INDEX_OF
SERVER_HOSTNAME=${LOCAL_HOSTNAME:0:INDEX_OF}
echo $SERVER_HOSTNAME

It's supposed to get the current hostname, assign it to variable LOCAL_HOSTNAME, get the first occurrence of "1" from hostname and assign value to INDEX_OF, the get the substring from variable LOCAL_HOSTNAME (starting at index 0 through INDEX_OF) and asign it to SERVER_HOSTNAME. No matter how much I've tried it keeps throwing Bad substitution error at the substring. I've searched and it says it has to be bash... but it is bash, both the sh script and the running shell. The LOCAL_HOSTNAME and INDEX_OF variables are ok.

Here is the output:
I've also tried to get the substring without the INDEX_OF but it gives the same error: SERVER_HOSTNAME=${LOCAL_HOSTNAME:0}
Code:
host1
5
test.sh: 7: Bad substitution

View 2 Replies View Related

Programming :: Scripting The Email With Bash?

Jul 8, 2010

I need to find a way to download the attachment from a daily report e-mail to me. The kicker is it will need to be down with a cron tabbed bash script.For example, which linux based CLI client is best suited to be scripted?

View 2 Replies View Related

Programming :: Bash Scripting: How To Keep Leading 0 On ' And '

Jan 27, 2010

I'm trying to put together a script that will quickly run through an archive directory of log files that are named by day of the month 01.gz, 02.gz, 03.gz.... 31.gz. The script uses gunzip -c | grep | wc to count up the total number of hourly occurrences of a filename and outputs the results to stdout.

The only snag I have left is the octal limit when it gets to 08 and 09. I've seen examples using perl and awk, but this script uses a number of nested for loops and if statements that I don't want to have to rewrite in a different syntax. I found that I can use num=10#08 to set that variable to a base 10 instead of a base 8, but then I lose the leading 0 again when it passes the number to the next filename variable.

View 8 Replies View Related

Debian Programming :: Bash Scripting For Jessie

Aug 25, 2015

You are probably using systemd (check it with ps --pid 1) and therefore /etc/init.d isn't considered for autostart. Here can you find some information about systemd and autostart [1]. As far as I know systemd isn't intended to start applications with systemd. I recommend you to use the autostart feature of your window manager or desktop environment or at least the .xinitrc.

[URL] ....

View 7 Replies View Related

Ubuntu :: Loop Commands In Bash Scripting?

May 15, 2010

What is the difference between For and While when creating loops in bash scripting?

View 1 Replies View Related

Ubuntu :: Image Manipulation In Bash Scripting?

Jul 5, 2010

I have a bash script that inserts some text onto every image at a certain place within a directory.

Heres what I have (from a German friend who appears online once in a blue moon), this is the line that resizes to a maximum of 800 either width or height and puts in the text 'text goes here'.

convert ${bild} -resize "800x800>" -strip -family Arial -pointsize 16 -draw "gravity southeast fill rgba(255,0,0, 1.0) text 10,10 'text goes here'" ${dstdir}/${bild}

Now, I would like to know how to place a PNG image (a watermark, so to speak) over all images within a directory in a certain place, so how would I go about modifying this line to place an image instead of the text?

View 9 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved