6
votes
3answers
3k views

In Unix speak what is the difference between a shell script and an executable?

I have seen this question on this site and this prompted me to ask this question . I want to know in Unix speak what is the difference between an executable and a shell script ?
4
votes
1answer
2k views

Removing files that do not exist

I apologize for the possibly misleading title, but it is the best way I could think of to describe the problem, which is: I have several files that I can cat, but when I try to rm them I get a "No ...
1
vote
1answer
226 views

Trying to Utime via FTP

I am connecting to my server via FTP (that is the only way I have access to this server in particular). I need to utime a command via FTP to the server. Other commands work but when I try something ...
1
vote
1answer
68 views

What to include in an RPM created from python packages

I'm looking to create a rpm for this tarball and couldn't figure out which files needed to be included in the package after the install. I am used to compiling some code and including the binary ...
2
votes
1answer
1k views

Sudo does not work in chroot

I would like to be able to use the sudo command in a chroot environment. I start the chroot as follows: chroot /debian-squeeze /bin/bash Now I'm logged in as root in the chroot. I can do su user ...
2
votes
1answer
121 views

how do i check if (manually) upgrading software will break existing software?

As an example, let's say I want to upgrade sqlite3. The version I have after (apt-get) updating and upgrading is 3.7.13. The most current version is 3.7.14. If I install the most current version from ...
0
votes
1answer
4k views

What is the fastest way to process line by line in bash? [duplicate]

Possible Duplicate: How to loop over the lines of a file? Let's say I cat a file and I want to run a bash command on each line and write each line as output. How can I run a bash command ...
4
votes
1answer
125 views

How do I batch-export all the content contained in symbolic links? (and then delete them all)

So as an alternative to Recursive scp without following links or creating a giant tar file? (this could be an emergency since the remote files could be deleted any time soon), I'm thinking of deleting ...
2
votes
2answers
6k views

Recursive scp without following links or creating a giant tar file?

So I did a recursive scp on my remote fileserver (in another state) and it created an infinite loop of links on my remote web directory... ...
3
votes
0answers
116 views

Remove prefix from subject header in index view

I subscribed to several mailing lists that prefix the Subject: header with a fixed string like [list-foo]. This clutters my index view and limits the usable space. I'd like to strip this [list-foo] ...
7
votes
3answers
13k views

How to take 'password' like input in shell script? [duplicate]

Possible Duplicate: How to hide commands typed in a Linux shell? Reading passwords without showing on screen in Bash Scripts I would like to take a password as input, but I want user to ...
2
votes
2answers
312 views

Removing consecutive newlines with ed

Input file: 1 line1\ 2 line2\ 3 line3\ 4 \ 5 line4\ 6 \ 7 \ 8 line5\ Desired output: 1 line1 2 line2 3 line3 4 5 line4 6 7 line5 Is it possible with POSIX ed? Removing the trailing backslashes ...
4
votes
2answers
586 views

Virtual Wireless Access Point

Basically, I want to be able to connect to a wireless network from my laptop. Then, I want my virtual machine to acquire internet access via a bridged connection from ETH0 of the VM to the host’s ...
0
votes
2answers
86 views

Is there any way of prompt a message when a command in /usr/sbin/ is tried to run as nonroot?

In most Linux distros I've used when you type for example ifconfig as a normal user, you get a prompt message telling you that only root can execute such command. In Debian, it only says command not ...
2
votes
3answers
404 views

Is there a variation of Linux or Unix that does not require open licensing?

In the future I may be building a system with an embedded operating system. Given the commercial properties of this system, it will make sense to have all of the internals as closed source as ...
1
vote
0answers
22 views

Upstart script produces folder with question mark at the end. Why? [duplicate]

Possible Duplicate: Bash/Korn shell script edited on Windows throws error ‘…^M: not found’ I'm writting an Upstart job to run Postgresql: description "PostgreSQL 9.1 Server" author ...
14
votes
4answers
6k views

Is there a JavaScript shell?

Recently I've been working with JS and I'm very enthusiastic about this language. I know that there is node.js for running JS at server side, but is there a shell that uses JS as a scripting language? ...
1
vote
1answer
3k views

How to query RIPE database on the command line?

Using the stock whois (on Fedora) I can easily get information for an IP adress: $ whois SOME_IP % This is the RIPE Database query service. % The objects are in RPSL format. % % The RIPE Database is ...
1
vote
2answers
2k views

How to upgrade Redhat 5.5 to 5.6

We have two server running on RHEL 5.5. Now we have to upgrade it to 5.6 What are the steps to upgrade it and also the prerequisites
0
votes
1answer
130 views

Are there any non-GPL linux package managers?

I'm looking for a linux package manager for personal project. The main criterium is non-GPL (and it's variants) license. So far I've managed to find that only Slackware's pkgtools meet this rule, but ...
3
votes
3answers
732 views

Different count for compressed file listing vs directory listing

I was taking a backup of a folder, where I used the following command : sudo tar -zcvf www.tar.gz /var/www/ It successfully compressed, just for verifying the number of files in the compressed ...
2
votes
1answer
166 views

Looking for an ISO creator

I'm looking for a ISO image creator, already tried isomaster, but it doesn't work with unicode chars, it just take it as bad chars, so what other tool can I use? I don't need booting, just archive ...
1
vote
1answer
119 views

Virtual Python installation not allowing ez_setup?

I don't have root on my system, so I'm trying to create a virtual Python installation. I ran virtual-python.py, and it told me to run ez_setup.py. I found it online and ran it with the command ...
1
vote
1answer
156 views

How can I remotely access linux servers

I have a couple of servers that I need to remotely monitor. Is there anyway that I can do that? Should I use vncviewer, ssh, or what?
4
votes
1answer
374 views

Can I read and write to alternate HFS+ file forks or NTFS data streams from Linux?

It's possible to mount both Apple HFS+ and Microsoft NTFS filesystems under Linux. Both filesystems support multiple content streams per file, though this is not widely used. Apple uses the term ...
1
vote
1answer
291 views

Pulseaudio rapidly switches ouputs at high volumes

I'm using Pulseaudio. The image is of the Output Devices tab and shows the Port set to Analog Output. This is fine and works great. There's another option called Headphones but if you try and set the ...
3
votes
3answers
394 views

Creating Emacs TAGS file

I am working through the "Emacs Lisp Intro" book within Emacs 23.4.1 on Debian Wheezy (CrunchBang Waldorf). Section 4.1 discusses the find-tags command and the TAGS file. Instructions are included to ...
2
votes
3answers
1k views

How can I securely login remotely to my Linux box over the internet?

I'm pretty much a Linux beginner, but this question has been on my mind. What's the simplest, most secure way to connect to my computer at home from work or from the library, &c? I'm running Mint ...
0
votes
1answer
1k views

Fatal error: No compiled in support for x86_64

Can't use gcc on x64 debian: $ gcc a.cpp Assembler messages: Fatal error: No compiled in support for x86_64 what should I do? Some people propose installing binutils, but they are already there. ...
12
votes
1answer
1k views

Screenshot of X from tty

Using Xvfb I can launch an application and take a screenshot. What I'm wondering about is how to capture from an existing (dormant) X session. Say from tty or over ssh. From what I understand ...
1
vote
1answer
2k views

How do I fix a noisy input device (Internal Mic)? snd_hda_intel - debug included

As the title says, I'm having trouble with a very noisy audio input device - the internal mic or any plugged in mics. So far I've narrowed it down to an problem in ALSA since my debug info is showing ...
2
votes
2answers
8k views

Get list of installed printers

Inside of a script I send a certain file to print using the lpr command on an user-selected printer. The list of the printers, from which the user selects the one to use, I get using the lpstat -a ...
4
votes
1answer
2k views

Where does the “export” command come from?

Why doesn't the whereis command give any information about the export command? How does the export command work even if the shell path variable is set to null?
3
votes
2answers
8k views

Booting Ubuntu from usb on a Mac

I have a Macbook pro (late 2009) running OSX 10.6.8. I want to partition a flash drive and install my Ubuntu iso image onto it. Then I want to boot up from it by (restarting my computer and) holding ...
1
vote
1answer
852 views

Why ls -lrth and ls -ltch gives different results

I was trying to find the time of database backup. Normally i use ls -ltch But this time i used ls -lrth It gave me different result for One file and all date-stamps were same for both ...
4
votes
2answers
3k views

How do regular expressions differ from wildcards used to filter files

While we use * to denote zero or more previous characters in grep, we use *.c to find all C files when we use it with the ls command like ls *.c. Could someone tell how the use of * differs in these ...
1
vote
2answers
662 views

compiling with gcc broken for users but fine for root

So somewhere along the way compiling as a regular user has stopped working on my server. I'm on Debian Stable. Can't think what has changed on my system that would result in this, or how to fix it, ...
5
votes
2answers
3k views

Check SMTP server capabilities on the command line

I know an SMTP server's URL. I want to know about that SMTP server's capabilities: TLS, password encryption, etc. Evolution Mail knows how to report these. How can I get them from the command line? ...
1
vote
1answer
2k views

Running a Snow Leopard 10.6.7 Image on an AMD: The CPU has been disabled by the guest operating system

I am quite frustrated so I have turned to this medium in hoping to get an answer. After reading thousands of forums and trying out various methods (I have lost track what I have tried already) I still ...
6
votes
1answer
416 views

Realtek audio issues on OpenBSD 5.2

I am running OpenBSD/amd64 5.2 stable on a new machine, using a gigabyte motherboard with a realtek alc898 audio chipset. When I try to play any audio (sources include mpd, aucat, and cat > ...
2
votes
1answer
175 views

variable assignment and IFS

Per Greg's Wiki the IFS variable is used: In the read command, if multiple variable-name arguments are specified, IFS is used to split the line of input so that each variable gets a single field of ...
-1
votes
1answer
11k views

enable apache mod rewrites to load clean-urls [closed]

In CentOS, a2enmod rewrite results in “command not found” but httpd -M lists rewrite module as listed and shared. I'm trying to enable it so can then have these rewrite rule apply so I can switch back ...
5
votes
2answers
1k views

Map workspace switch to mouse buttons in cinnamon

I want to set up cinnamon to switch workspaces right and left when I press my mouse scroll wheel clicker right or left, but I don't see an option in the cinnamon settings. Is there any way to ...
11
votes
1answer
8k views

Linux always send ICMP redirect

I have several Debian Squeeze (6.0.6 up to date) used as routers. When a link is down, they send ICMP redirects to local hosts. This is the default behaviour of Debian and several others. So once the ...
11
votes
2answers
4k views

“trap … INT TERM EXIT” really necessary?

Many examples for trap use trap ... INT TERM EXIT for cleanup tasks. But is it really necessary to list all the three sigspecs? The manual says: If a SIGNAL_SPEC is EXIT (0) ARG is executed on ...
7
votes
2answers
2k views

Generic HTTP server that just dumps POST requests?

I am looking for a command line tool that listens on a given part, happily excepts every HTTP POST request and dumps it. I want to use it for testing purposes, i.e. for testing clients that issue ...
4
votes
2answers
1k views

How to get notified when svcadm restarts a service that died

I'm using svcadm to keep my node.js server running on Illumos, is there a way to get notified if svcadm restarts the server because it crashed? Specifically if the process went down on its own and not ...
5
votes
4answers
3k views

execute bash script inside .bashrc

Hi I am curious if it is possible to execute a bash script inside bash rc. It would seem to create a infinite loop unless there was some way to tell it to not try and start a new shell. Here is an ...
0
votes
3answers
569 views

Increment xml files with bash

A good mate on a forum had helped me with creating this script but everything Ive thrown at it outputs wrong and I do not know why or what is the issue. I ran all my script in ubuntu's terminal if ...
2
votes
2answers
1k views

Regex for phrase matching with case statement in ksh

I am trying to start or stop a service on AIX in ksh. I am trying to start to build in fool proofing for checking things like if the services is already down, etc. Here is my script #!/bin/ksh ...

15 30 50 per page