Software :: Shell Script Single Step Debugging?
Aug 5, 2011Does anyone know of a way to single-step through Bash shell scripts in order to debug? (similar to the way Windows 98 used to let you single-step through autoexec.bat)
View 2 RepliesDoes anyone know of a way to single-step through Bash shell scripts in order to debug? (similar to the way Windows 98 used to let you single-step through autoexec.bat)
View 2 RepliesWhat I am trying to accomplish is a way to read only the lines that have been added to the file mylog0 since the last time the script looped (5 seconds). I am open to new suggestions too, I have been stuck on this little script for a few hours already.
Code: #!/bin/bash
i=0
firstline=0
[code]...
I am testing some bash script using -fx flags:
#!/bin/bash -fx
Now when the program runs i get output in which i need to trace i my script the different lines.
Is there some built-in flag for line numbers output on debugging?
Does anyone know how can one improve his debugging skills or how can one narrow down the problem and try to get to the solution ASAP.Or rather how once should approach a problem.I know this is a bit vague question but I want to know how you people approach?
View 3 Replies View Relatedstep by step procedure of how to install Free Adobe Flex SDK in Ubuntu 10.04.
View 1 Replies View RelatedMy son's desktop has Fedora 12 and a wireless card. Everything worked for a long time until one fine day the network management just disappeared from both System/Preferences menu and the panel on top.I can run a Live CD with Fedora 12 on that machine and it immediately connects to our home wireless network. Booting from hard drive has no sign of NM. Trying to run 'yum install NetworkManager-gnome' does nothing because there is no connection. Running the same command as a LiveUser from CD does seem to install everything (but where to???), no errors reported, and still the is no network functionality upon reboot from the hard drive, even when plugging to LAN with a cable.It seems that I need NetworkManager in order to go online in order to install NetworkManager.I have other computers at home that work fine, I was able to download a couple of archives with NM, but I am new to Linux and have no idea what to do with those files.I could not find any step-by-step installation guides for NM, especially when the computer has no connection at all.
View 8 Replies View RelatedRecent refugee from Ubuntu here. Fedora fan for one month.I have two computers that access the Internet through a router. They are assigned IPs dynamically by the router's DHCP. I need each computer to be able to "see" some shared folder on the other one, with RW permissions to that folder and its content.I want to use Nautilus to access those folders from each computer.
Tried NFS, Samba, gnome-user-share to no avail.
Willing to kill Fedora's firewall forever in order to ease folder sharing.Can some kind and knowledgeable person try a step by step setup guide for this? As an 8-year Linux user I am not afraid of command line interfaces.
I'm an absolute beginner trying to sue Linux. I just installed Ubuntu Linux Netbook Remix 10.04 LTS and everything's fine. I just wanted to have Java in my Ubuntu. I downloaded JDK from Sun website. There are 2 files
jdk-6u21-linux-i586.bin
jdk-6u21-linux-i586-rpm.bin
I searched the web for instructions on how to install but I just get confused. Can anyone provide me with step-by-step installation including registering environment variable ?
i would want someone who would like to assist me as i start to use linux because i am naive to this platform. Also want a step to step approach to this platform called linux i mean a self explanatory article or tutorial
View 8 Replies View RelatedAre there any document or website for creating MRTG with CentOS 5.5 step by step?
View 1 Replies View Relatedi installed rtorrent using the script in the rtorrent forum it installed webmin and vsftpd.vsftpd shows connection refused tried everything open port 990 in iptable disable selinux but not working someone tell me step by step to reinstall vsftpd on ubuntu 10.0.4 (32bit)
View 1 Replies View Relatedmention an example step by step procedure for adding a PLUGIN in Cacti. And also mention what does a PLUGIN serve in Cacti ? I am a newbie to cacti please consider my silly questions.
View 1 Replies View RelatedI have read a bajillion tutorials and have gotten nowhere. This is my first Linux box, and it has been nothing but headaches. i'm pretty handy around computers, I took a Unix class, and I used Dos as a kid, but i'm just having so much trouble with this.I just want to remotely control my Ubuntu box from my windows laptop over my home network. That's it. I cannot find one comprehensive step-by-step tutorial that will show me how to do this. Everything I find assumes I know at least something about linux, and I don't.
I have Putty, realvnc and tightvnc viewer installed on my laptop.I have open-ssh and vx11 somethingorotherinstalled on the Ubuntu box. I have also allowed remote connections on Ubuntu from system>preferences. I am getting very frustrated and would really appreciate someone giving me some help. So far I HAVE been able to remotely control the box through one method. Through the GUI on ubuntu I went to: System>Preferences>network connections
and set the server to static IP, then I was able to use real VNC viewer from my windows machine to connect to the IP I set (192.168.0.11) but I couldn't get there through servername.local or whatever it said. The problem witht his solution is that the Ubuntu box then couldn't connect to the internet (which I need it to do.) someone please please please direct me to the information I need for this simple task. I just need to remotely control the desktop, the reason I wanted to use vnc through ssh so that I can leave the ubuntu box headless. Using just VNC I was having problems when the box was rebooted (had to log in before I could remotely control it... something about a security key ring?)
can anyone explain me step by step process of installing octave on ubuntu 10.04?
View 1 Replies View RelatedFor a testing purpose iin our environment we need to setup a Linux based virtual machines.For that i come to know there is a option in RHEL using xen or kvm.can anyone provide me the detailed step by step for setting up virtualization in rhel?Also i have few doubts like, is redhat subscription needed for achieve this?also there is a possible to do vmotion thing which is in vmware,can we do that with rhel virtualization without rhel subscription.
View 8 Replies View Relatedi am using rhel5. can anybody tell how to configure an apache server step by step
View 1 Replies View RelatedI am using redhat linux enterprises edition 5. Please some help to enable SNMP on linux box.Please tell me step by step configuration for enabling SNMP.
View 3 Replies View Relatedstep by step document for DNS & Sendmail configuration
View 2 Replies View RelatedCurrently, I am setting up multi seat system with Fedora 14 but after hours of searching, i'm still running into some issues. I have managed to edit and get the xorg.conf file working although im still having problems.
I want to set up the multi seat so that 1 server with 2 graphics hards connects to two monitors and have their own sessions. I have got the xsessions working although you can move the mouse across 1 screen to the other. Is there any resources as to step by step for setting up multiseat of fedora 14? Are there any main issues regarding custom.conf?
I am trying to setup thttpd on my ubuntu 10.04 system. I run ubuntu in a vm and would like to be able to turn on and off a simple web server as I please. I have been having lots of trouble trying to find a guide on how to setup and run thttpd. I have looked at the author of thttpd's homepage as well as this guide, and yet I cannot get it to work. Basically I have it installed and don't know how to start or configure it so that it starts. Current code
Code:
user@ubuntu:~$ sudo apt-get install thttpd
[sudo] password for user:
Reading package lists... Done
Building dependency tree
[Code]...
Now I am using fedora14 for a long time. I want to know how to make a Linux desktop. I just want to download a linux kernel source, then compile it, then add softwares step by step, Last I want to get a desktop linux with X11.
View 5 Replies View Relatedi had problem on installing my nvidia gforce 8600m gt driver on fc12,now i have installed fc13,could any one show me a step by step way to install the driver?i don't want to confront with that black screen one more time,as i understand if we download the driver from the nvidia website there would be a relationship between the kernel version and the driver,if so what is it?how should we understand which driver is for which kernel?my kernel is,2.6.33.3-85.fc13.i686.PAE[with 2 gb ram]which way is better?to get driver via repos and yum or the nvidia website?
View 6 Replies View Relatedhow to configure dsn server in redhat linux 5.4 step by step
View 1 Replies View Relatedhow to install dns step by step
View 1 Replies View RelatedI have upgraded my machine to Karmic, and thereby getting gcc/g++ 4.4 in the process. I have some code that requires gcc/g++ 4.3.
I can change the compiler system wide by redirecting the symbolic link from 4.4 to 4.3
Code:
sudo rm /usr/bin/gcc
sudo ln -s /usr/bin/gcc-4.3 /usr/bin/gcc
but i would like to have it done per session instead.
I have a slave node uploading all kinds of backups to my server in the internet. Now I would like to display the actual upload and download rate to this server (not the entire nic-traffic, any protocol) in a small php-page for easy monitoring.I had a look at quite some monitoring tools and the one which kind of offers what I am looking for is iftop with a filter on the IP of my server. As I would like to periodically update a file with the actual rates, an interactive program won't do. A possibility would be to filter the packages myself using but this seems to be quite a long shot.The optimal solution would be a program or script printing out the actual upload to a host specified in the options to STDOUT
View 3 Replies View RelatedI need to execute 20 urls in one shell script and display there responses on the console and write on text file too. consider the case when url is not responding.
View 4 Replies View RelatedHow do i take a single line of input from the user in a shell script?
View 3 Replies View RelatedI 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).
I want to write a single shell script that allows me to, once executed from a panel launcher, change the image preview setting between "local files only" and never. Right now i have two tiny scripts, one for local files only and another one for never, that is:
[Code]...
and the other says string "local_only". But that means i need to have two launchers, because i don't know how to write the condition <<when set to never, change it to local only. And is it possible to make a script that also changes the launcher's icon when the preview config is set to one or the other value? That way i'd know what it is set to just by looking at it. It would act as a diagnostic and therapeutic tool XD