Software :: Shell Script For Creating Report?
Aug 31, 2010
`cat /var/log/secure | grep "refused connect" |awk '{print $9}'|sed 's/::ffff://g'|uniq -c | sort -nr |head -2 | awk '{print $2}' >/root/sample`
for IP in `cat /root/sample`;
[code]...
View 1 Replies
ADVERTISEMENT
Feb 18, 2010
I have to admit that I register to LQ after I failed to search for similar solutions.let me see whether I can explain my problem clearly. I need to extract a single report from a big file. The big file looks something like this:
Report for yyyyyy
Your info 999-9999999
End of Report
[code]....
I need to search for a user provided string, say 999-9999999, in the big file. Then I have to extract the single report. My logic is simple,
1) find 999-9999999
2) backward search for "Report for", note down the line number
3) forward search for "End of Report", note down the line number
4) extract the record by using info found from step 2) and 3).
I am trying to do this in bash, with awk and sed (I am new to both).
View 8 Replies
View Related
Jul 9, 2009
parsing xml file using shell script and generate report in a PDF file
Xml file input:
<report>
<student name="x" father name="x1" class="first" Address="xyz">
<property name="sports" value="yes"/>
<property name="drawing" value="no"/>
[code]....
View 12 Replies
View Related
Dec 1, 2015
how to do in Debian
1. am required to create a bash-shell script called terminator that terminates all processes of a name given to the shell script as an argument. Make sure the terminator shell script will not take any crucial file system services as arguments.
2. Show how you would configure an Ethernet card by reapplying your existing IP and network mask
3. Install a workable nfs file sharing system between your system and a remote system, using optimum values for resize and wsize.To demonstrate send a 512Mb block of random data between client and server using the dd command.Write down the relevant steps and procedures
View 6 Replies
View Related
Sep 4, 2010
I would like to create the shell which would support the LS command in C++. And the way the command prompt can be changed.
View 7 Replies
View Related
Oct 14, 2010
In a shell script, I am creating a .tar using this command
Code:
tar -zcvf dst/lib/library.tar.gz dst/lib
There are two problems:
[code]...
View 1 Replies
View Related
Feb 7, 2011
1. How do I create an array with 5 entries
2. Output one of the entries in the array randomly
3. Subtract the entry output from the array
4. Repeat steps 2 and 3 until there are no more entries in the array
View 11 Replies
View Related
Mar 23, 2010
I know that it's possible to create panoramic photos very easily with hugin. But I would like to create a script for nautilus where I select my picture and then create a panoramic without any questions.I guess it's possible but I can't find on google, each time I find something about hugin.Is it possible to call from the command line and hide the interface during the process ?
View 3 Replies
View Related
Nov 3, 2010
i need the source code to create my own shell in linux or provide atleast procedure for doing it
View 9 Replies
View Related
Apr 8, 2011
how to create Samba user using shell script
View 6 Replies
View Related
Jul 8, 2011
I'm creating script to connect to mysql and perform function. I'm into process in querying mysql from shell. Here is the content of a sample script:
Code:
#!/bin/bash
USER=scripter
PASS=test123
DB=test_scripts
View 2 Replies
View Related
Jan 31, 2010
This is regarding the KDE application Basket:
I want to create a shell script that I can run as a cron job to do automated backups. how to proceed. I have the source code and have pulled out the backup source files. Here is the link for the source code. The download is at the bottom of this page. The backup files can be found in the src folder listed as backup.cpp and backup.h [URL]
If someone can do this, I believe it will make a nice addition to the Basket application for all.
Also I am not running Kubuntu I am running Karmic 9.10 64 bit
View 8 Replies
View Related
Mar 9, 2010
I would like to a build a CD image (of CentOS 5, x86_64 that loads into memory and boots to the OS without installing anything to hard drives. Then I would like the system to execute a shell script automatically. The shell script will have commands that will control execution.
The goal of this exercise is basically to pre-configure a system (RAID config, BIOS update, etc) automatically using the shell script before installing the OS. I would like the ability to change the shell script as needed and probably repackage the ISO image. I would prefer not to deal with building a source tree to accomplish this. this is something one could do using mkisofs.
View 1 Replies
View Related
Feb 3, 2011
I have a box that's used as an SFTP server. All users have restricted shell so they can only use SFTP to send and receive files. But it makes it hard to have them change their passwords. I thought that if we had a web page set up where the user could enter their username, old password, new password and confirmed new password, that this would be the easiest solution.
View 1 Replies
View Related
Jan 26, 2011
I have a command that outputs n lines of text, and I want to place each line into an array element, but I can't seem to get the syntax correct
So my command is this:
cat $configfile | sed -n '/cluster:'$clustername'/,/cluster/ p' | awk /host/
Which produces many lines depending on the value of $clustername. I'd like to get each line as elements of an array.
View 5 Replies
View Related
Feb 25, 2011
How do I report a bug concerning opensuse 11.3
View 9 Replies
View Related
Jun 15, 2011
MACHINE: HP Proliant DL260G5OS: SLES 11 SP1kernel: Linux xserver 2.6.32.12-0.7-default #1 SMP 2010-05-20 11:14:20 +0200 x86_64 x86_64 x86_64 GNU/LinuxIt is used as remote xserver in a LAN.I have configured /usr/lib/restricted/bin/.rbashrc with some environment variables but when the users logon in the system finally is executed $HOME/.bashrc and some environment vars are overwritten.
View 2 Replies
View Related
Mar 14, 2010
I want to change my default shell to tcsh. I used
Code:
usermod -s /bin/tcsh username
command as given at url
But if I open a new shell, it is still a bash shell.
How do I make my default shell as tcsh?
View 6 Replies
View Related
Jul 26, 2010
I am using ubuntu10.04-server 64bit AMD with fluxbox. After I ran Matlab in a shell (without GUI) the shell does not display characters anymore, but will execute any command, I just can't see the characters that I'm typing.. I use aterm and xterm, does anybody know why that is, am I missing a package?
View 1 Replies
View Related
Mar 28, 2011
Is there a way of reporting a bug in reportbug? I was trying to report a bug in another package and everytime I tried to run reportbug, the terminal window would display "Segmentation fault" or if I ran it with the --configure option, a GUI opens up, select Continue, then the screen says "This may take a while...". Well, 20 minutes later, the screen still says "This may take a while" and reportbug is still doing nothing..
View 3 Replies
View Related
Aug 2, 2011
When trying to file a bugreport on udev reportbug hangsSo I tried changing the package name to libc6 (just to see if there is reportbug issue)I get**Gdk:ERROR:/build/buildd-gtk+2.0_2.24.4-3-i386-ouUeDk/gtk+2.0-2.24.4/gdk/gdkregion-generic.c:1110:miUnionNonO: assertion failed: (y1 < y2)
View 2 Replies
View Related
May 17, 2010
I've been having problems with pdf files made using latex (dvi->ps->pdf). I found a reported bug in bugzilla by searching the error message and made a comment. The 'problem' is that the bug is filed under evince, but I'm pretty sure it is in ghostscript. Should I file another bug in the ghostscript section, or will the clever people at bugzilla work it out once they get round to this particular bug (it's marked as low priority)?
The bug report can be found here[URL]..The bug is more annoying than anything else, so any advice is welcome.
View 1 Replies
View Related
Jul 26, 2010
I want to report a bug in rhythmbox. But apparently, it doesn't use launchpad, it uses Gnome Bug Tracker. But where is this located? I can't find Rhythmbox in bugzilla. Goggling for "gnome bug tracker" doesn't bring up anything useful.
View 2 Replies
View Related
Jul 26, 2010
it's not a real bug/error in Ubuntu per se, but i found an error in the spanish language pack of Ubuntu.There were some words that weren't translated right.I was wondering how to report/change that.I actually found it in the Ubuntu 9.10 spanish language pack, so i don't know if it's been fixed for lucid, but i thought it would be good to know either way just in case i find some other translation errors.
View 6 Replies
View Related
Jan 5, 2011
Is there a way to report a bug on a launchpad ppa? I see the Bugs section only has search, with no open bugs. Is there another way to report a bug on this system?
View 1 Replies
View Related
Feb 23, 2011
It purports to start and then just disappears. Any way to fix this? I'd report a problem, but...
View 2 Replies
View Related
Mar 20, 2011
I just installed 11.04 alpha 3 and I found a bug in the installer. Even though I told it to install the boot loader on /dev/sda7, it installed it on /dev/sda and messed up my other settings. I would like to report a bug, however, when I go to Launchpad and select "report Ubuntu bug" I get sent to this page:[URL]I can see how to report a bug for a currently running process (which would be hard if the process has just crashed), I can see how to request new software/features, but there is nothing for the installer.
View 1 Replies
View Related
Nov 16, 2010
I have installed Cacti 0.87e in fedora 11. And it is working fine. But as per our organizational requirement, they want report as pdf format. I have installed nmidcreate pdf also for the same. It generates the report in pdf format but the content of the pdf is blank i.e. it does not contain any graph or value in the report. It shows only header and footer information, nothing more than that. Kindly resolve this issue, either using the above mentioned plugin or other else. Because this is an urgent requirement. I am waiting for your affirmative response.
View 6 Replies
View Related
Apr 14, 2011
Is there any way I can switch my desktop shell from unity to, say, gnome-shell? I can switch using other console shell I like (bash, csh, fish, etc.). Assume that there is a stable alternative desktop shell, I should be able to choose, too.
(For console shell, we goes to /etc/passwd. But for desktop, I can't find the way to config.)
View 2 Replies
View Related
May 21, 2009
Is there a way to export a variable to parent shell in shell scripting ?
View 3 Replies
View Related