General :: Need Man Pages For Scripting

Apr 20, 2010

Does anyone know of any man pages that would provide me information on commands in shell scripting like while or case? I have a test tomorrow where we have to write shell scripts and we're allowed to use the man pages, but not allowed to look at previous scripts. I don't feel like memorizing a bunch of commands if I don't have to.

View 5 Replies


General :: Man Pages Not Displayed / Saying Formatting Pages And Then It Is Displaying Blank Page?

Sep 9, 2009

when i input man <cmd>'s saying formatting pages....n then it is displaying blank page.

View 6 Replies View Related

Fedora :: Apache Not Parsing Php Pages / Trying To Run Php Script In Browser Its Not Opening Php Pages?

Feb 19, 2010

I have a Cent OS 5.4 32 bit final installed in my dedicated server.

I used to run lighttpd with php in my server until now and all was fine.But yesterday I changed my website which needs apache to run. So installed apache using yum install httpd command.

Then I added the virtual host name of my domain in webmin panel but when i try to run my php script in browser then its not opening php pages.

Instead it downloads php files like index.php when i open in browser.So I guess apache is not able to compile and run php pages. Only html pages are opening right now..

View 2 Replies View Related

Programming :: Firefox Scripting Add-on (Scripting HTML / Javascript Inside Firefox)?

Sep 17, 2009

Is there a firefox add-on to script HTML and/or Javascript directly inside firefox

View 1 Replies View Related

General :: What Is Shell Scripting?

Feb 15, 2011

What is shell scripting? what is 'bash'?

View 14 Replies View Related

General :: Ubuntu 10.04 - GUI Scripting Languages

Aug 5, 2010

There is a scripting language made for Windows called AutoIt. It can do things like, for example, if a user highlights a word and presses a certain hotkey, it can copy that word into memory, open up firefox, go to, paste the word into the text box, and click the button to search. What are some of the easiest scripting languages in Linux to learn that can do this?

View 4 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 :: Do More Programs Need Scripting Support

Sep 6, 2010

I've been playing around with awesome wm, uzbl and doing quite a bit of reading and thinking. Do more programs need scripting support? I've found that being able to tell a program what I want it to do specificially has made life much easier. I'm finding some things (my prefered editors, ed and vim) are starting to seem a little limited since what they can do is fairly well defined and hard to change.

View 1 Replies View Related

General :: Any Projects On Shell Scripting?

Dec 6, 2010

Just give me any project on shell scripting .. to start working on it and practice my self ..

View 2 Replies View Related

General :: First Line In Shell Scripting?

Feb 15, 2011

I am a bit confused with the first line while writing a shell script , if someone can please explain me the meaning of the first line " #!/bin/bash "the confusion for me is the # at the beginning , in shell scripting # means a comment. but in this case it loads the shell which the script must use,instead of commenting the line how is this possible. where is this defined , any particular file.

View 3 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; and and here are the contents of these files respectively;



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


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 :: What Scripting / Language To Focus On?

Apr 26, 2010

So for example, I uses VBscript to script out my tasks in Windows, and more recently PowerShell.From a Linux Admin's point of view, what scripting would he/she need to know? Would being proficient in Bash be sufficient or should you supplement that with something else? (if so, what is that something?)

View 3 Replies View Related

General :: Which Scripting Language Is Best To Learn

Dec 22, 2010

I have been working on CentOS from the last 6 months. I want to know that which scripting language is best to learn.I heard about Python and bash scripting.And I think Python is fastest among others.

View 8 Replies View Related

Ubuntu Servers :: General Information On Scripting?

Mar 1, 2010

I am willing to learn. I purchased and am currently reading The Official Ubuntu Server Book, and I think I have found my first side project. First, the book said Ubuntu Server is pretty much coded with a scripting language called Python. I want to define the different init levels of my server. I want to define like init 5 to have a GUI interface, just for kicks. A GUI might come in handy when doing certain things in Ubuntu Server, I just don't know, simply because I've been working on the command line. So my first question is, do I need to learn Python to script in Ubuntu Server? I have very little experience coding let alone scripting. The book has example of Upstart scripts, but I was wondering if the language is Python?

So I guess my question is a general question to scripting If I were to focus my time in learning Python as well, would I be able to customize/utilize more of Ubuntu Server? I'm not exactly sure what to learn/read as well to this. I'm trying to broaden my horizons, and I've decided to experiment with Ubuntu Server.

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.


The error I get is:

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

View 13 Replies View Related

General :: Dynamically Scripting Update Of MOTD?

May 5, 2011

I know this is somewhat lame, but I remember back in college the MOTD on some of the systems was a random quote. I always wanted to do that. It seemed really trivial, but still neat and clever.

I searched a bit and don't see anything built-in for CentOS, so I was considering writing a Perl script to parse the RSS feed from a quotes site, then update /etc/motd with a random quote from the feed. This would nearly guarantee I could have this on any distro with identical results. Does anyone know of anything that already exists? Is anyone interested in using a script that I write to have the MOTD updated with random quotes themselves, or am I the only one? I'm perfectly willing to share the result when I'm finished.

View 1 Replies View Related

General :: Global Expressions Using Vi And Shell Scripting?

Jul 29, 2010

I am trying to learn more about global expressions and how it is needed in changing stuff in vi and in shell scipting in general.My question is basic:

How can I add a " # " pound sign at the beginning of every line in a file. So if I want to remark out every line in a file, what would be the global expression for that? Is there a global expression cheat sheet?

View 4 Replies View Related

General :: Scripting: Modifying SQL Fields Dynamically?

Feb 22, 2010

I'm looking for a way to dynamically modify a fied in the SQL file.




The third field in this SQL file is what needs to change to n+1

"10023" needs to change to "1"
"10098" needs to change to "2"
"10123" needs to change to "3"
"10983" needs to change to "4"

I tried with awk and sed, but since both require the usage of ' (single quote), my variable fails to get updated. I know i can use cut and recreate the sql statememnt, but i believe there should be easier way using sed or awk. Would anyone know of any creative way to get this to work in one-liner? This needs to be a part of the script preferable without making call to external file.

View 1 Replies View Related

General :: Shell Scripting - For Each File In Directory

May 2, 2011

I am working on some homework, however i am not here to be spoon fed. I am trying to get the numerical modification date of each file in a folder. Ie lets say there is a file called bob and it was modified 2006-11-23. i want to get it into a variable as 20061123.

Now i currently have this code:


However for some reason my output is:


See how the 2011 has been placed next to it? i ran it with -x and saw this:


However i do not know how to find a way around this?

View 11 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:


View 13 Replies View Related

General :: Calculate Time Period In Scripting

Mar 16, 2011

Now i am writting one bash script. in that my requirement is i need to create one directory and that the directory details to be stored in one file Ex. date/time and all in one file. after that i need to delete the folder automatically exactly after 3months. between these time period in 2month itself i need to send one mail to admin "regarding this still one month only more to delete the folder" . is it possible to do like that date calculation in script.

View 10 Replies View Related

General :: Scripting To Find Difference Between 2 Directories

Dec 17, 2010

Write a script to list all the differences between two directories.

View 1 Replies View Related

General :: Scripting - Formatting Ps Output W/Perl?

Sep 27, 2010

I'm writing a script that gives me some pertinent info about my servers, and the last little piece I need to figure out is the process list. There are going to be non-technical people looking at the output of the script and I'm trying to make it as simple as possible.

Right now, if I do ps -ef | grep <process> | grep -v grep
It obviously shows me the process, but the problem is that there is 4 lines of info in front of the process. ie

root PID date time java -1024 -cp oh,my,god,there,is,so,much,data,it,carries,on,for,4,lines,I,want,to,shoot,myself,trying,to,read,it,f inally,in,the,end,there,is,a,space /here/is/the/process
I'd like the output to be something like this:
PID: #### Process: /here/is/the/process

I've thought about how I could take the output and use awk or sed but I know there is probably an easier way to do it with perl.

View 12 Replies View Related

General :: Learn Shell Scripting And Came Up With A Lil First Script?

Jan 26, 2011

I am trying to learn shell scripting and came up with a lil first script that I could actually use.I have a basic shell script and all it does is run:

sudo apt-get update
sudo apt-get upgrade

So basically just a shell script that updates your packages. NOW, my question. I made another shell script that makse a bit of a menu and asks what you wanna do, 1 to UPDATE or 2, to CLOSE. How do I make it so when they enter 1 it runs my ?

View 6 Replies View Related

Server :: Web Server Sees The Pages But Not The Folder That Has All The Images For The Pages

May 14, 2010

I'm very new to Linux, and I have ran a Windows XP server before, with a Apache2 Server software for Windows. and didn't have any problems with it, but I really want to set this server up with Linux.

The server is running, but the only thing that comes up in the browser, is the html pages, the pages call all the images from a folder /images/ but for some reason I can't get it to pull the folder up. None of the graphics show on any of the pages.

I also have a VirtualHost setup, and have another website set up in the DocumentRoot with the 2nd site, but it won't come up ether, even tho it is listed as the 2nd VirtualHost, and have that folder set up as the DocumentRoot.

I'm just using IP Addresses for now till I get this all sorted out.So if I enter the IP the main page comes up, just no graphics. if I enter the IP Address/2ndSiteFolder/ I get a directory listing with the 2nd site folder listed, so now if I click on the 2ndSiteFolderName, it comes up as IP/2ndSiteFolder/2ndSiteFolder/ Now the 2nd site comes up, and so does all the Graphics for that site, even if I go to some of the other subfolders site. So its just weird. I don't know what I need to do to get this to work right.

I know it has to do with setting up the folders for VirtualHost, I just don't know what it is. I have been working on this for a week, and I'm not getting anywhere..

View 9 Replies View Related

General :: Scripting - Clean Up Output Of 'script' Command?

Jan 24, 2011

I'm using the linux 'script' command [URL]... to track some interactive sessions. The output files from that contain unprintable characters, including my backspace keystrokes.

Is there a way to tidy these output files up so they only contain what was displayed on screen?

Or is there another way to record an interactive shell session (input and output)?

View 4 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:
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

Copyrights 2005-15, All rights reserved