Re: Running a Script- and debugging.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 22Sep2009 15:46, Jim <mickeyboa@xxxxxxxxxxxxx> wrote:
| Could someone give me a Ideal as to this part of a script would
| hangup script.
| In FC11.
| 
| The hangup stops at;
| 
| cd 'dirname $0'

Hmm. Is this _inside_ the debugger? It is possible the debugger is in
single-step mode (I have never used it), and it is stopping here so that
you can step through the script.

If you run the script as:

  sh -vx /path/to/the/script

does it stop there as well?

The -v recites script lines as they are read, and the -x shows commands
as they are executed. The line:

  cd `dirname $0`

should show _once_ for the -v as it reads the line, and as two commands
for the -x: it will run "dirname $0", and then a "cd /path/to/the"
(which is what "dirname" is producing from /path/to/the/script).

On the subject of editors at the command line, you may prefer to avoid "vi"
and "emacs" and use the command "nano", which is a small and point-and-type
style editor.

Cheers,
-- 
Cameron Simpson <cs@xxxxxxxxxx> DoD#743
http://www.cskk.ezoshosting.com/cs/

UNIX was not designed to stop you from doing stupid things, because that
would also stop you from doing clever things.   - Doug Gwyn

-- 
fedora-list mailing list
fedora-list@xxxxxxxxxx
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
Guidelines: http://fedoraproject.org/wiki/Communicate/MailingListGuidelines
[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [Fedora Magazine]     [Fedora News]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Maintainers]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Legacy]     [Fedora Desktop]     [Fedora Fonts]     [ATA RAID]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [SSH]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Centos]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Tux]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Asterisk PBX]     [Fedora Sparc]     [Fedora Universal Network Connector]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux