General :: Write A Script To Ftp A File And Get An Email Confirmation Or Failure Sent Out?
Jul 30, 2010write a script to ftp a file and get an email confirmation or failure sent out.
View 5 Replieswrite a script to ftp a file and get an email confirmation or failure sent out.
View 5 RepliesMy Eee 900 running native Xandros has a 8G Sd card installed. Each time I boot I am asked to confirm what I want to use to read the card, File Manager, Music Manager of Photo Manager. Is there any way of skipping this step or making the use of File Manager a default?
View 2 Replies View RelatedI'm writing a script and I'm stuck. I need to read from keyboard to ask for confirmation while Im reading from a file. My code is this:
while read linea
do #code
echo "you sure? (y/n)"
read answer
#code
done < $"agenda.dat"
The problem is that stdinput has been redirected to file agenda.dat so when I do "read answer" it reads the next line from the file.
How do I disable the file move/copy confirmation in Gnome Commander?
View 4 Replies View RelatedI 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)?
My EeePC used to be called 'machine', but some time ago I renamed it 'deimos'. There's been no problem with this for ages; but today I got an email 'Delivery Status Notification (Failure)' - because of a failed job, Anacron had tried to send a message to 'root@machine'. I've checked /etc/hosts and /etc/hostname, and in both locations the computer's name is correctly configured as 'deimos'. Where else should I look?
View 1 Replies View RelatedI've configured more email clients over the years than I care to mention so I am by no means a newbie at this so when I set up linux for a friend recently (10.10 on a laptop) I came across this problem, the install went wonderfully btw! The fix, long story short, if you are a sky broadband customer and are just setting up your email, you'll have a letter informing you of your email address, you log on to sky.com/resetpassword (or similar) enter some credentials and enter a password. This worked fine with the webmail, log in no problem, configuring a client (Thunderbird and Evolution) resulted in receiving a login failure with the message similar to 'credential failure' or words to that effect.
So after entering the password again and again, reading and re-reading the sky.com site instructions on setting the correct security settings, checking the correct ports, checking the correct settings to allow an IMAP connection from within the webmail interface and still getting no where I did this: logged into the webmail interface, then 'mail settings' > 'accounts' > then 'google account settings' then 'change password', this opens a sky.com reset password window. choose the my security question option and use this to enter a new password and this worked.
I suggest not using the 'my email address' and 'send an email with a reset link' option, this was attempted first and resulted in the same issue, new password set for the webmail but still not working with an email client. It seems that, and I'll be corrected by anyone who knows for sure, that their software is currently not updating all the passwords held if you use the 'reset password via email link'and neither did the initial setting up of the password work correctly either. My best guess is the passwords are going out of sync with their email servers not being updated correctly in all circumstances. Once I had reset the password as described it worked first time, so clearly there is something in this.
For info the settings for IMAP:
[code]...
outgoing mail settings:
[URL]
security: use name and password
connection security: use SSL
port should be set to 465
[code]....
When I ls -l /etc/passwd, -rw-r--r-- 1 root root /etc/passwd When I login as myself, and rm /etc/passwd, it asks: rm: remove write-protected file '/etc/passwd'? If I say yes, will it actually delete the passwd file?
View 1 Replies View RelatedIn my latest Debian I noticed that apt-get install does not, as I expected, stop to ask for confirmation before starting the actual download/install process.it directly carries on with the operation, which is obviously very annoying when, as I usually do, you first want to see what packages are needed (and how heavy the download) and then you want to decide whether to proceed or not.The man pages, as I correctly remembered, talk about a -y option intended to bypass confirmation requests, which means that the default behaviour should be the opposite.I tried also on a Ubuntu 10.10 with the same result.
View 8 Replies View RelatedI notice that one of the functions I can make a keyboard shortcut for in KDE is Log Out Without Confirmation. This might show a lack of imagination, but when might I want to do that?
View 3 Replies View RelatedI have a quick question involving crontab and a script I want to run with it. The script generates and sends an email to group members who are on-call for a given day, but when you run it this appears'Run This Script?' The script will run when you enter 'y' or 'yes' and then press enter.
I'm trying to give that input via another script which runs the first one and then waits for the prompt to input a 'y'.How can I make a script which waits for a prompt and then gives it input?
I have a parental issue at hand, I have a ex wife thats keeps playing the jumping email game with my daughter, as as stated in my mediation agreement I have full rights and access to my daughters email/online activities, which means password rights etc, I need to figure out how to write a script that will log any email site thats done as the regular use on this account, the issue should be resolved by july 28th by court, but until then Its an issue in my home.
View 12 Replies View RelatedI'm running GNOME under Lucid on a 64-bit machine. Here's the background: Yesterday, I tried to delete a subfolder of my Local Folders directory. Right-clicking on the subfolder offered the usual menu of options including "Delete", but selecting "Delete" left the folder in place. In floundering around trying things to solve the problem, I tried opening Thunderbird from the command line, using "sudo thunderbird", following which I succeeded in deleting the recalcitrant subfolder. Here's the first stage in the problem:
But when I next opened Thunderbird in ordinary mode (i.e., as "ron" not as "superuser"), I discovered that the Inbox was no longer accessible. Clicking on "Get Mail" yielded only a small wheel-icon that spins, presumably showing activity in progress, without actually finishing by getting mail. The other various folders seemed to operate normally, in that they showed their contents when clicked on.
[Code]....
Ive installed Gaussian '03 on fedora Core 10, but I'm unable to run it. It aborts and i get the following error
Code:
Erroneous write during file extend. write -1 instead of 4096
Probably out of disk space.
Write error in NtrExt1
I can select Ubuntu 10.10 OS from the grub menu, but it no longer loads? It scrolls through some lines, including mount failure and "No such file or directory." before halting below :
(initramfs)
The same happens when recovery is selected.
When I try to upgrade, I always get this message: "E: /var/cache/apt/archives/linux-image-2.6.32-5-amd64_2.6.32-35_i386.deb: failed in write on buffer copy for backend dpkg-deb during `./lib/modules/2.6.32-5-amd64/kernel/drivers/net/s2io.ko'"
View 14 Replies View RelatedI'm writing a script/plugin for Nagios for testing a WebLogic server.. I redirect some output to a file, and then i read that file to get some data, but i can't seem to write to that file with my script :s... this is the most important code
[Code]...
* EDIT * When i execute this script through a local terminal (PuTTy), it works but when i execute it from Nagios, it doesn't work..
I have a system with 2 hard drives. One drive (D) is my Ubuntu 10.04 system and the other drive (C) is my Windows XP system.
When I boot, I get BIOS then GRUB. If I choose the XP selection I am taken to a Boot Loader that now longer works. I get an error saying: "Windows could not start because the following file is missing. <windows root> system32hal.dll Please reinstall a copy of the above file.
Can I remove the boot loader and let Grub take me directly to the C:/windows? If so how?
I want to keep a trace of the URL I visit, so I use a command line like this:
tcpdump -ien1 -v -X 'tcp port 80' | sed -nl
's/^.0x[0-9a-f]{4}:.{43}(.)$/1/p' |perl break.pl |perl -pe
's/(GET|POST).(.*?).HTTP/1....Host:.([a-zA-Z._0-9-]*)../"
BEGURL
[Code]....
I also tried redirecting stdout and stderr to /tmp/out, it's still empty. The file has write access. I have no idea what it can be. Is there anything else than stdout and stderr?
I want to write a shell script file for the below subject
subject / situation : i have many users say user1, user2, user3, user4 and so on... within my /home dir
Within a user dir say.. /home/user1 i have many unwanted files. these unwanted files start with the name core for eg. core2324, core9789, core 9079 etc.. i need to delete them.
I want to write an automated script for this, which can do the same. How to write a script which can delte these unwanted core files which exist in all user dirs.
What are the possible problem when Windows access the file from Ubuntu got Read Only even though have a full permission to read, write and execute the file? Ubuntu to Ubuntu accessing the file there is no problem only Windows got a problem.
View 1 Replies View RelatedI restarted a server yesterday for the first time in 2 years, but a shell script that send out an email every night via a mutt command line didn't work last night.
I don't know anything about mutt. do i have to start something in order for it to be able to work? is there a log i can look at to see what did or didn't happen making it not work?
Is there any use if a file has only write and execute permission and not read permission?
View 2 Replies View RelatedI am trying to write a C++ Code to read write a XML file in C++.I researched a lot and find xerces is used for that but I am not able to write the code for that.Please provide me some links on how to run a code that R/W a xml file in C++.
View 1 Replies View RelatedI need to copy a file into a Flash memory which is connected to my computer via USB. The file must start at a specific sector.
Can anyone guide me how to do this? (it can be through a C program, a line command, or any other way)
Under debian i did this:
casey@t400:~/programs$ ls -l
-rw-rw-r-- 1 root root 2071 2010-03-28 05:15 urlgetter.cpp
Then
casey@t400:~/programs$ gedit urlgetter.cpp
and upon attempting to save the file, I get the error
"Could not save[...] You do not have the permissions necessary to save the file."
but I am a member of the group root:
casey@t400:~/programs$ cat /etc/group | grep root
root:x:0:casey
How would i write a script which will add a following content to a file.File Before running script.
Code:
acpi = 1
apic = 1
builder = 'hvm'[code]....
I have a machine with no CD writer. I have some .wav files that I want to make an audio ISO from.
How would I go about this, preferably from the command line?
A while back I installed Dreamlinux 3.5 Gnome edition using ext2. When I attempted to use the email address books I imported from the Dreamlinux3.5 XFCE edition, which had been ext3, I discovered that none of the email addresses could be mailed to. I had to manually type in the addresses.
When I reinstalled Dreamlinux 3.5 Gnome using ext3, the same backup files that did not work in ext2 now work just fine. The question is, was this a "broken data" problem caused by the switch to ext2 file system or something else? Has anyone else experienced this?
The mail program is Thunderbird.
Debugging some of my scripts after upgrading from Debian Lenny to Ubuntu 10.04. In so doing, I tripped over this "problem," the solution to which may give me a clue to others.
On a bash shell command line I created a file thusly:
sudo touch zero_file
and it lists as expected with default permissions 0644:
-rw-r--r-- 1 root root 0 2011-03-09 11:18 zero_file
But then this command fails
sudo echo abcdef >>zero_file
-bash: zero_file: Permission denied
I can place the command (minus the "sudo") in a script & run it under the auspices of sudo & it works. Am I missing something re the stdin redirection when using sudo?