Ok, so I find myself ripping audio CDs frequently, which I then lame to mp3's to put on my media player. I usually define the --ta and --tl (artist and album) ID3 tags and batch encode each album, but don't bother with the track tags as I'd have to do each one seperately.
So, I'm working on a script to do all this for me, extracting info from 'pwd' etc. to fill in the blanks for --ta, --tl and --tt (track name). All is working well, except that I can't get sed to pass on the "" character to lame to escape spaces.
Here's what I've got so far: (trouble spot is bolded - no need to pay attention to the rest of it)
Code:
All this does is pass a 'space' on to lame, which it takes as an invalid argument.
How can I launch a program that requires a path and that path has spaces or special characters in them if (as far as I can tell) .desktop launchers doesn't seem to support escape characters?
I have recently upgraded to a VPS for the purpose of web hosting a group of sites related to my business.The reason for the upgrade was because we wish to run a shopping cart software which required greater memory for PHP and the VPS was the most economic solution. So, I have very basic linux knowledge but I am the definition of a newbie when it comes to going further than just scratching the surface of server configuration! I have successfully hosted our main site for a number of weeks but recently the postfix service stopped sending mail. I have Plesk Control Panel installed and postfix continually shows as not started even though in SSH the service status is definitely running - I have gone through the troubleshooting checklist here (http://www.postfix-book.com/debugging.html#d0e6) but can't get any further than section 2.1 as when running the host command (#host relay-test.mail-abuse.org), I get # -bash: host:command not found. I've gone further in the document but not found any issues...
When postfix was working properly (i.e. sending emails!), the plesk CP showed the service as started and all emails from the website were sending as normal. The mailq command is showing the messages stuck in the mailq and the maillog shows the following:- http://pastebin.centos.org/36446 - these are the latest few pages.To check the configuration and basic elements I have flushed the mailq (which shows a stack of messages waiting) and I have also spent a long time (2 weeks) reading up on the parameters that should be in main.cf and master.cf.I have found that when I 'telnet localhost 25' I get the following response...[root@s15397216]# telnet localhost 25Trying 127.0.0.1...Connected to localhost.Escape character is '^]'.
Usually if I have to replace a character in a string I used the sed /s/ command. However, I am having some difficulty in doing the same thing when I have the following string in a variable in my shell script and I need to replace all the forward slashes ("/") to backslashes ("").
sometimes there are one, sometime there are two exchanges in this log file. the 100= is the stock exchange- if there are two, they are seperated by a comma. i understand how to escape a comma in a regex, but I am having trouble with combining it.
Need little advice running this command. watch -d 'ps aux | awk '{print $4" "$11}' | sort | uniq -c | awk '{print $2" "$1" "$3}' | sort -nr | head'
I get this error message from AWK. awk: cmd. line:1: {print awk: cmd. line:1: ^ unexpected newline or end of string
I have tried all the usual by trying to escape the single and double quotes in the command but same result. The end result should be the a listing of memory hungry processes that are scanned every 2 seconds (watch default value).
i have a cd that shows you an empty directory unless you mount it for the joliet extensions - specifically 25 2f 40. It uses wide characters with the high half null.
Is it possible to remove the ESC sequences in GNU Screen's output file? Things such as colours, tabs and other escape characters make their way into the log files and become difficult to decipher.
I've tried Dr. Google & Co. as well as reading the manual, but haven't been able to find anything suitable.Perhaps I've overlooked something?
When I started I took the defaults and ended up with Evolution.
I have never managed to get it set up to send. It and godaddy are on diffferent planets.
Having used Thunderbird in the past, I downloaded it and it automagically set itself up to send and receive.
So now I use Thunderbird - BUT - when I click on a link in an html page - the mailto macro sends me to something other than THunderbird - perhaps Evolution - and nothing gets sent.
So how do I tell the system that when i click a mailto in firefox I want Thunderbird?
PS I think I found it. In firefox - edit - preferences - applications tab - mmailto - it said Evolution. I changed it so say /usr/bin/thunderbird - will now test it.
YES - Seems that asking a question triggers my brain on how to resolve it. Sorry to waste your time.
I would like to replace gvim with vim in the terminal. One of the nice things about gvim is that it is able to display text using italics.
Vim allows setting an ANSI escape code for italics (e[3m), but this does not work in gnome-terminal. Is there a terminal emulator that supports the ANSI escape code for italics?
I am trying to use sed command to repalce one string with other but somehow replacement string contains forwards slash hence getting the error statement garbled!
Is there tool or a regexp that can convert shell escape characters to HTML code?
As an example, here is a logfile from GNU screen:
Which I would like to convert to something like this:
And send as HTML e-mail to an e-mail address, to archive my work.
Here is a related question, which shows how to convert it to regular text, but it would be nice to convert to HTML and not just throw the escape characters away.
I was messing around with the alternate character panel app and made a custom character set. I then wanted to put it on a new panel and created a new panel. I moved the character set to that panel, and then started to mess around with the panel settings (auto hide, show hide buttons, and expand, to be specific.) So far so good, until I moved the panel from the right side of the screen to the top. I already had a panel here, and it seemed not to like hiding a panel when there was already one on the top.
When the new panel hid itself, all my panels stopped responding (any clicks on them did nothing) and my processor started going at 100%. I tried a reboot and the only thing that changed is that now I can't even see my panels. I'm guessing I need to change the settings back manually through the prompt, but I don't know how to do that. I am using 10.04 and have not upgraded gnome since upgrading to 10.04.
While modifying the definition of my PS1, I saw that "[" and "]" markers should be added to help bash to compute the right display lenght. Many exemples on the web do not use them or even mention them.I searched for a solution to add them automatically, like with sed, but I didn't find any example.Are they still needed and is there a recommandation not to use sed to define PS1?
Is there any way to disable the escape sequence in screen, so the user can't escape and run commands? we have a program that runs under user "shop". We want to wrap it in a screen session, and use .screenrc to set it multiuser and allow the "dev" user to connect to it. Then, if the "shop" user loses his connection, the session will stay running, and then the "dev" user can attach to the session and end it. We want the "shop" user to be unable to enter any "screen" commands.
I recently installed vsftpd on my server. I noticed that users on the machine can login into vsftpd with their username and password on the machine and go to their root dir "/home/username".Now, I want to give some people a vsftpd username and password so they can upload and download files and folders to their folder, but this folder has to be in the "/var/www/(username)" folder. I don't want them to be able to go to any other folder than their own folder like "/var", "/etc" or "/home" etc. Also I don't want them to be able to login on the machine as a user, through putty for example. They should only be allowed to acces their folder with vsftpd, nothing else.
1,i access my server via secureCRT, when i typed the Code: vim in it, it shows Code: -bash: vim: command not found . how to install the vim? my linux version is centos.
2, when i typed some chinese characters in VI, it shows unnormal. maybe i should set the default character to UTF-8. but i don't know how to set it.
3,i want to copy a html file code to VI, how do i do?
4,how to create a file. like this? Code: mkdir filename ?how to rename the file, which i created by VI and had some contents in the file.
In programming and various terminal programs (Screen, Vim) the [, ], { and } tends to be used a lot. I'm using a Norwegian keyboard where these are placed such that I have to stretch my fingers a bit too long for whats comfortable. To make it easier I though I'd try to make alt+[some key] be one of these characters. Is there a way that I can bind, say alt+� (Norwegian letter) to '{' system wide?Btw, is such thing called binding, mapping or something else? I'm getting a bit confused by the terms...
I am attempting to set a character set of IBM850 on slackware linux for a particular application (epic5). I am using rxvt-unicode and have setup LANG/LC_*=en_US. Now if I set the encoding to IBM850 in kde's konsole program im able to display certain characters correctly. I'd rather not use IBM850 for everything; is there a way to set/alias a command for a per application execution?
I've tried things like: LC_CTYPE=IBM850 epic5 LC_ALL=IBM850 epic5
i need some help to solve thisif i have this , CREATE TABLE "HALOOO"in one lineafter this line they have "BRANCH INFO" how do i use the (") that is in create table line and not affect other line