Ubuntu Multimedia :: Insert A Wav File In An Email?

May 9, 2010

is there a way that I can insert a wav file in an email and play when the receiver opens the mail? I don't mean when he clicks on an attachment but when he opens the message file. Using Latest Thunderbird version.

View 1 Replies


ADVERTISEMENT

Server :: Insert Counter Number In Subject Line Before Sending Email Message?

Feb 2, 2010

Did anyone heard about or can suggest mabe a postfix serverside solution in order to insert a counter number into the subject line before the message is sent?
I mean something similar with helpdesk tickets, because I would like to create the possibility for the senders, to make further refference about a speciffic message using it's counter number provided by postfix server.

View 5 Replies View Related

General :: Script To Insert Number Of Lines In A File To The Start Of The File?

Sep 17, 2009

I'm looking for a way to insert the number of lines in a file to the start of the aformentioned file. This should be simple but as I am not used to scripts in Linux, I am finding it tough going. I can find the number of lines in a file easily enough via

filesize=$(awk 'END {print NR}' $1)

but as for inserting this into the first line, i'm failing to do so. I've tried some of the other approaches on these forums but none so far have been able to do so.

I've tried:

sed '1i$filesize' $1

but sed i requires a string, not a variable so no go I've also tried:

mv "$1" "${1}.bak" 2>/dev/null || touch "${1}.bak"
cat $filesize "${1}.bak" >"$1"

but again with no luck as cat seems to need an input stream Just to recap, i want to insert a line at the start of a given file that holds the number of lines the original file has.

ie the file:

a
b
c
d
e

should become:

5
a
b
c

[code].....

View 3 Replies View Related

Programming :: Insert Each Line Of One File To The Another File After Certain Lines?

Jul 2, 2010

i have two files with thousands of line, I am trying to combine these two files but i want to insert each line of one file to the another file after certain lines. I am using awk with the following command but it does not work.cat file1 | awk ' { print $0; if (NR%3004==0) {print "file2"}}' > outputfile

View 14 Replies View Related

Ubuntu Multimedia :: Way To Insert A Jpg Into A Pdf ?

Jun 12, 2011

I've been all over the internet for the last several hours (at least 3, I lost track). I see the same lousy question coming up over and over. Are people finding a way to do it? It seems so. Are most of the solutions something I think I'm capable of doing? Probably not.

We're trying to fill out a document and sign it between the two of us. He's gotten his part done but he has expensive software that I don't have and can't afford. The whole thing is starting to get a little sour for us both by this point. I've been fussing with this thing for over 3 days now.

I downloaded PDFedit today and was able to use it to fill text into the fields that require that. Now I have one remaining space that needs my signature. I have a jpg file of my sig saved but I'll be darned if I can get the thing into the pdf. Come tomorrow I'll have to go back to work at my regular job and God knows when I'll have time to get back to this. By that time the deal is probably blown! PDFedit seems like it should be able to do this but I just don't know how to use it well enough.

View 5 Replies View Related

Ubuntu Servers :: Trying To Insert JPG File Into MySQL Table

Mar 12, 2011

I would like to store JPG files in a mysql database table. I figured that using BLOB fields on the one hand and the 'load_file' command on the other would do the trick. Here is how I set up the table:

mysql> create table blobtable (id int(10) not null auto_increment,
fileName varchar(15) not null,
file longblob not null, primary key(id) );
Query OK, 0 rows affected (0.51 sec)

Then I tried to enter the data:
mysql> insert into blobtable(filename,file)values('pic',load_file('/var/www/temp/IMGP4764.JPG'));

Which got me the following error signal:
ERROR 1048 (23000): Column 'file' cannot be null

It seems to me that the file path to the JPG file (although correct) is the source of the problem, and is causing the load_file command not to work. My first attempt was with the JPG file in my PC's home directory. When that returned the same error message, I figured that maybe the file had to be in the PC's (server's) web area so I put it under the 'www' directory.

View 7 Replies View Related

Ubuntu :: Insert Pictures In ODF File, Not Internet Links To Them

May 30, 2011

When I copy and paste something from a web site, links to pictures are inserted, not actual pictures.

When I disconnect from the Internet, I cannot see pictures which is annoying.

Do you know how to make LibreOffice copy and paste actual pictures into a Writer document?

View 2 Replies View Related

General :: Insert A Folder Into A ZIP File?

Aug 11, 2011

I'm a newbie on Linux and had to do something like this with the zip command:

My folder structure inside a zip file abc.zip is code...

It would move into abc.zip as folder3/textfile.txt (the hierarchy preserved)
Also used a -j switch (help said it junked the path info and it did but) - it would move only into abc.zip and sit at the same level as folder1 and folder2 instead of replacing the textfile.txt within abc.zip/folder1

My question is - I want to replace the abc.zip/folder1/textfile.txt with the one inside seconddir/folder3/textfile.txt.

How do I achieve this via the command line interface?

View 3 Replies View Related

Ubuntu Multimedia :: DVD Won't Won't Mount After Eject/re-insert?

Aug 29, 2010

After successfully playing a DVD video (w/VLC) I close VLC, eject the DVD, then insert another disk. I get an error message: "Error mounting: mount: /dev/sr0 already mounted or /media/{name of previous disk} busy." But mount command doesn't show /dev/sr0 and ls /media shows nothing. I have to log out, then log back in in order to play another video. (same result with mplayer)

View 1 Replies View Related

Ubuntu Servers :: Insert The Code Into The Virtual Host File?

Feb 19, 2010

Im looking to use the Apache2 GeoIP mod to block countries from accessing a website. I've searched, but cannot seem to find any information on how to insert the code into the virtual host file. Does anyone know how to get this working or can point me in the right direction?

View 2 Replies View Related

Ubuntu :: Can't Find A Way To Insert An Existing Jpeg File Into Gimp?

Jun 26, 2011

I am trying to design a graphic in gimp2.6 image editor and I can't find a way to insert an existing jpeg file into gimp,

View 2 Replies View Related

General :: Insert Texts In A File By Using Shell?

Jan 26, 2011

I'm using fedora 14...i would like to insert few texts to a file in shell prompt(may be useful in scripting for in the future)...for eg,

[root@ruby ~]# cat > hello
1
2
2

[code]....

so in the above file i need to add the line "new line added" near the number 4 in the above file ....how can be this done ...?

View 8 Replies View Related

General :: Insert Line Into A File With A Command?

Jan 4, 2010

I would like to insert a line into the /etc/sysconfig/iptables with a command like sed or with any script. How can I insert this line:

-A INPUT -m state --state NEW -m tcp -p tcp --dport 80 -j ACCEPT

but under the line "-A INPUT -p tcp -m state --state NEW -m tcp --dport 22 -j ACCEPT"

View 2 Replies View Related

General :: Insert Tab At Beginning Of Each Line In File?

Aug 5, 2010

I am trying to create a shell script where a user can specify a file with a list of logins and the script will create a batch file with specific information in specific columns.

Example:

loginfile.txt has

User1
User2
User3

I need the output to be as below:

1 User1 Date 12/31/9999
2 User2 Date 12/31/9999
3 User3 Date 12/31/9999

Where the columns are separated as below.

1[tab][tab]User1[tab]date +%D[tab]12/31/9999
2[tab][tab]User2[tab]date +%D[tab]12/31/9999
3[tab][tab]User3[tab]date +%D[tab]12/31/9999

I can use the nl utility to get the numbers easily enough, but I need two tab separations between the number and the user list. Is there a sed command that will insert at the beginning of each line? If so I can just run nl after I get some tabs up in the front.

View 2 Replies View Related

Programming :: Insert Graphics Into Latex File?

May 30, 2011

I want to insert graphics into latex file, for longtime I used xfig to create graphs, but it is limited,specially for math formulas, dia i find not easy to use.Finally I want to try asymptote or tikz which one is more appropriate

View 1 Replies View Related

Programming :: Insert A Line In The Test File With Sed?

Jul 15, 2010

I have following file workers file: There are 800 entries like this.

# consensus/uat
worker.consensus-uat1.host=lonlx10409
worker.consensus-uat1.port=13702
worker.consensus-uat1.type=ajp13

[code]....

I want to insert one line just below the line starting with "woker.list". I think sed can do it but I am not aware.

View 14 Replies View Related

General :: Insert Text In The Last Line Of A File With Sed Command?

Oct 4, 2010

I want to insert the text "DB dept" in the last line of passwd file which looks like this right now

Quote:

newuser:x:717:717::/home/sacharje:/bin/bash

And I want it to be like this:

Quote:

newuser:x:717:717: DB dept:/home/sacharje:/bin/bash

I tried to do that with sed but failed, I'd like to know the proper syntex with sed to achieve this.

View 7 Replies View Related

General :: Insert Text To A File Using Command Line?

Jan 28, 2010

I need to be able to edit a file from the commend line as I intend to script this operation, the file is called menu.lst The original is as below

Code:

titleUbuntu 8.04.3 LTS, kernel 2.6.24-24-generic
root(hd0,0)
kernel/boot/vmlinuz-2.6.24-24-generic root=UUID=b09feb23-5524-4ec4-862f-94700b968f64 ro quiet splash

[code]....

View 4 Replies View Related

Programming :: Sed To Read The File And Replace And Insert The Pattern?

Jun 11, 2009

I want to read from the file and check for the pattern, if the line has some word like <string>: then string should be copied into buffer. Afterwards, I want to insert the same <string> with some word in the next line of the file. use sed command to perform the above mentioned operations?

View 2 Replies View Related

Programming :: Insert A Comment In Html File Based On Its Contents?

Jun 10, 2010

I have multiple HTML files in a folder. there is a <h2> tag like this:

Code:

<h2>some text</h2>

in each file. I want to write a shell script/batch file to add this tag in <head> section of each file:

Code:

<!-- TITLE= "same text from h2 tag" -->

Note that <h2>some text</h2> in some files has 1 or more linebreaks and so I couldn't capture tag content using a simple grep or...
for example:

<h2>first part of text
second line of text</h2>

The line break shouldn't be shown in <!-- TITLE= "same text from h2 tag" -->. The script has to capture tag content & skip line breaks.

View 3 Replies View Related

Programming :: Sed One-liner: Search Text In File And Replace It - If Not Present Insert It?

Oct 16, 2010

As indicated in the subject, I want to search a text. If the text is present I want to replace it. But if the text is not present, I want to insert it after first line and before last line.

Searched text is:CleanCache "*";

Where * can be anything.

Example: CleanCache "false"; -> CleanCache "true";

If CleanCache "false"; is not present, only insert CleanCache "true"; after first line and before last line.

View 8 Replies View Related

General :: Convert An HTML Email Saved As A Text File To A PDF File From The Command Line?

Aug 23, 2011

I need to be able to convert HTML email messages saved as text files (.eml or .msg) to PDF documents, one PDF per email, retaining formatting and images.

Are there any Linux tools that will allow me to do this from the command line (so it can be scripted)?

View 1 Replies View Related

General :: Insert A Line Into A Text File Using "sed" Command?

Sep 18, 2010

I've been reading tutorials of Linux sed command, but haven't got anything yet. the problem is : I want to insert a line into my DNS database file which has a pattern like below:

<Domain name> 3tabs here <IN> <A> <ip address>

the question is : how to add a line into a file like this using linux sed command? I have problem inserting tabs and the spaces!

View 7 Replies View Related

Programming :: Insert Message Contain "!?><$%" To Variable Or File

May 18, 2011

i want to insert message contain "!?><$%" to variable or file. This is the line i use

kk = gogo
message = "Hi! ?%$&*@"
echo $kk "$message" >! /tmp/.kk_user

View 14 Replies View Related

Ubuntu :: CheckGmail To Play A Wav File Whenever Get A New Email ?

Jan 23, 2010

I'm trying to get CheckGmail to play a wav file whenever I get a new email but am having some difficulty.

In CheckGmail's preferences there is an option to execute a command upon the receipt of a new email. I want it to

Quote:

The problem is that data.wav is located in a folder entitled "WAV_Files". Entering the above command from the home directory obviously returns:

Quote:

When I enter:

Quote:

The whole thing works beautifully. The problem, I can only enter one command into CheckGmail. I tried to pipe the commands together thusly:

Quote:

To no avail. I got the exact same "no such file or directory" line as above.

View 3 Replies View Related

Ubuntu :: Open An Email Attachment -trf File?

Aug 22, 2010

how do i open an email attachment -trf file

View 4 Replies View Related

Ubuntu :: Finding Software That Can Recognize Email Address Out Of A Doc-file

Jan 28, 2011

creating a mailing list I need a software that can do that. Other formats like txt or rtf would be great too, as I can easily convert.

View 4 Replies View Related

Programming :: Insert A Line/value After A Particular Line In File With Sed?

Jan 13, 2010

I need to run a command in a shell script to insert a line in a file, after it finds certain line. To add the line 'user = mysql' after the line [mysqld] in file /etc/my.cnf

View 3 Replies View Related

Software :: Open Jpg File Attached To Email?

Sep 15, 2010

My Slackware 13.0 system says it does not know what to use to open a .jpg file. I checked a couple of other threads which say one is supposed to use gimp but that it does not work. What does work?

View 9 Replies View Related

Ubuntu :: Evolution Email - Intersperse Replies Into Quoted Email?

Apr 24, 2010

I use 'quoted' style for reply emails. I want to be able to intersperse my replies within a quoted reply i.e. if the email had three paragraphs, I'd like to be able to have my replies between each of the paragraphs. At the moment, I don't seem to be able to do anything other than delete from the quoted section - I try to simulate my requirements by cutting and then 'paste quotation', but this doesn't always work as sometimes Evolution adds too many levels of '> ' .

View 5 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved