Fedora :: Checking Automated FTP Script's Status (Bash)
Jan 31, 2011
I am using an automated bash script to upload some files to a remote ftp server . The script is working fine as it is , however I need to check if it uploaded the file successfully or not , so it can remove them. This is the ftp part of the script which is working fine for uploading files.
How do I check if a file is a soft link in the terminal? They're usually color coded, but I gave permissions to a colleague and now every file is green. Is there a simple command for this?
1. display menu until user quits the script 2. menu would give following options to a. create backup b. restore files from backup c. quit 3. for option a or b user would be required to specify the files and name of the archive] 4. has option to be run with use of parameters if that is the case it will not display menu but carry out required task unless it was not possible to do 5. incase of any errors are encountered it would call external scrpit that would display custom disigned error message.
I'm trying to make a automated build-script with bash but i keep getting different errors that I can't seem to figure out. Could anyone please tell me what's wrong with this package of build-scripts? I'm posting the main build-script and attaching the rest of the scripts in a compressed form. The errors mainly comes from the scripts in "/first_installation/usr/share/siem-live/init"
I'm trying to make a automated build-script with bash but I keep getting different errors that I cant't seem to solve for various reasons. what's wrong with this build-script? I'm posing the main build-script and attaching the rest of the scripts in a compressed form. Buld-script link: [URL]
In a Linux bash script I can do several things with windows using wmctrl but I'm trying to figure out how to determine what the currently active window is.
I have a bash script that checks for contents in a folder every 15 seconds and then acts on it's contents. This works great for the average size file however on very large files it starts acting on the file before it's completely written. Is there a facility in bash shell to get a file complete signal or such? here is trigger to launch a larger script.
Code:
#!/bin/sh while true do $HOME/bin/hpgl.sh >/dev/null 2>&1 &
I am new to scripting and been working on this bash script for awhile now. I been researching this problem, but I can't seem to find a solution. I was wondering if someone could please help me out. Here is my script:
I cannot get this script to run the "ps -ef" command on the client. It get its value from the host machine that I am running this script from. I need this command to execute on the client. When I run the command (ps -ef | grep NO | grep -v grep) on the client, I get something back. Here is what I get when I try to debug the script.
It there a way to enable automated mouse cursors in Fedora 12? About the only thing I miss from WinDoze is the animated hourglass cursor when I start an application by double-clicking its icon. With Fedora, I'll sometimes double-click an icon again, thinking that my first attempt didn't work, only to find that the program was loading and then I have two instances of the program.Yeah, it's a minor thing and, yeah, I can live without it, but it sure would be nice.
I want to install Red hat based custom OS in a complete automated mode.I ll have my kick start file inside the CD rom and when I boot with that ISO or CD.The OS should start installing by taking parameters from the kick start file without having to specify the path of the kick start file inside the CD.like "linux ks=<path>".Is it possible to achieve this by writing any script or something so that when the CD boots the kick start path is passed automatically to the anaconda installer.
Sometimes at startup I get this message "Checking disk 1 of 1". Does that mean it's checking all partitions on the hd? After a bad shutdown there is no prompt for fsck to run and the system just boots up. In fstab I have both options set to "1" for the partition Ubuntu is on, all others set to "0". Any ideas on both?
i just wanna know if there is some script out there for shutting down a certain service if the load exceeds a specified value?
I've a system with a DBI-Proxy running, most of the time the systems load is about 2~3...if a DB-connection dies, the load rapidly increases (very fast) and after some seconds the load is > 200 and i'm no longer able to shut down the DBI-Proxy manually...or do anything else via ssh...
Now i wanna have a script running in background that checks the system-load permanently and stops the DBI-Proxy if the load exceeds...well, lets say 10 or whatever.
I have just upgraded to Lucid on Ubuntu. I am a long time Pidgin user. I tried using Empathy with Gwibber, but I can't get Gwibber to update my IM status(es) in Empathy, so I want to go back to using Pidgin. (Additionally, I can't get Skype to work with Empathy.)I installed pidgin-microblog and pidgin-mbpurple, and they allow me to view my Twitter feed in Pidgin and update my Twitter status in Pidgin. However, in Karmic, I was also able to specify certain "status availabilities" (one named "Twitter-Available" and one named "Twitter-Away", for instance) to have the IM status message for these statuses become populated with my Twitter feed. This capability seems missing in pidgin-mbpurple in Lucid (and it seems to be the only thing missing from Karmic).
Is there a way to have pidgin-mbpurple update certain "status availabilities" in Lucid (and I'm just missing something) or is this no longer possible?Equivalently, is it possible to have Gwibber update my status message in Empathy? (I just want to be able to update my status once on one of my three computers - and have it propagate to all my other accounts (IM and social networking) and computers).
I will keep this short, I have a bad HDD possibly PCB damage due to heat.It's a laptop although I can remove it but in the mean time till then, is there any way I can pass an option to the kernel to stop scanning it.My OS mounted on a 8 gb sd card plus 4 gb flash drive.It takes 20 minutes for Fedora to bootup and Debian base Linux 30 to 35 minutes.
It wouldn't been a problem setting my laptop to sleep mode when I'm done and it was working fine but after a few updates, once I put my laptop to sleep I can't do it again in the same row. I have to shutdown. Lets say I tried anyway, system stop being responsive, while I let it continue to see it will become responsive again, it went on for an hour and half. It's annoying... So my question is, what option can tell the kernel to not scan my HDD.
I'm trying to get a program to compile with OpenGL support and it's saying that the headers are missing. But I think (or thought!) that I already had Open GL up and running. My suspicion is that I need to install the appropriate -devel files...but I just can't seem to find them. Furthermore, I don't want to tweak my system and install proprietary Nvidia drivers if things are already working just fine.
I have a Geforce 8300 GS in a i586 32bit Dell Inspiron 530. I'm trying to compile Cinelarra and keep getting:
Quote:
OpenGL 2.0 libraries missing Hardware acceleration using OpenGL 2.0 is disabled
Does anyone know which driver (ie: 96xx? 173xx?) I should be using for this? Where are these libraries? How can I find them and tell Cinelarra where to look?
And even more basically: How do I tell if OpenGL is working or not? Maybe I don't have them afterall..
I have just installed from the Live Cd (Fedora 13). So far so good except that I have just installed the updates (which has taken some time) .
The updater screen shows a full progress bar and next to the progress bar is this text " checking for libraries currently in use" this has been at least one hour showing the same thing, it hasn't changed (PC is still running OK). Does this mean I can safely quit and the updates will be OK or should I keep waiting for a reboot screen or updates success message ? Is this normal, if so how long does it usually take to complete?
After a fresh installation of Ubuntu 10.10 I uninstalled empathy (im using skype). The empathy menu in the evolution indicator was gone after that.I also uninstalled gwibber. But the gwibber status indicator remains within the about-me panel... Uninstalling the gwibber package also removes the me-menu which I want to keep actually. Especially the shutdown/restart... part of it. See attachment.I know there is a shutdown panel-app...but its butt-ugly and it doesnt allow to logon/off.
In another thread I read that the gwibber status shouldnt be there if no account for it is configured... which it is not... I do use ubuntu-one though which is in the same menu... I saw that this issue was addressed at some bug report before, but not fixed yet...
Does anybody know a good workaround to get rid of the gwibber status in the panel while keeping the about me and the shutdown button?
On my FC11 installation Palimpset Disk Utility icon in the top menu bar is reporting that I have a disk failure with the caption "one or more disks is failing".When I open up the details section in Pilimpset I can see that "2 sectors are failing",I have checked this with gparted checking facility and it reports that the disk is OK.What I would like to do is to check the disk using a command like tool or ofline tool, which would then tell me where those bad sectors are on that partition so that I can resize it (using gparted) and have the bad sectors in NON ALLOCATED DISK SPACE.
Whenever I get to the dependancy check, it gets up to 99% and appears hung. I am in text, not GUI. Any idea why or if I just need to wait longer? I waited about 1/2 hour. Also, on newer versions, there seems to be no text install option. I saw in the stickies there is this option, and I was wondering how to get to it? I hit the function keys to get different menus while installing fedora 10 on my laptops but just can find a place to type text. I'm no guru, but I've been around the block and I'm just faster at the old text way. Old fart you might
I'm not necessarily gonna do this, but I have to know. Is there a way to make the system not complain about every single freaking password you try to use? Make it so that any regular user could make "hello" their password without complaint? Like I said, I won't necessarily do it, but I have to know if it can be done.I did some searching and found the su -c "passwd username" trick, which is working for right now (I have root access but a user account I made for a friend doesn't)... it's just irritating when it won't even let him use something like "snuh123" because it seems to think it's based on a (reversed) dictionary word. Any use of a dictionary word, even with other chars, fails
Installing from a CD, and F13 constantly freezes at the same spot - "Checking dependencies in packages selected for installation" - gets stuck 1/3 to 1/2 thru.
I tried installing F14 and F15 but display resulted in freezing. The display would work upto "Check Media/Skip Test" for media during installation and the system freezes immediately after that. So I did a VNC installation from another system. But the initiation of X would always result in hanging of the box. After googling and trying various solutions, I found a ray of hope in one solution which suggested adding "vesafb:mtrr,ywrap vga=0x318" to the kernel arguments. This resulted in displaying successfully the boot-time flash (Fedora logo being filled with white color) during booting. But "startx" or "inittab 5" result in hanging of the system.
The following is the relevant information: I see 5 monitors and 5 cards!
Code: # lspci | grep ATI 09:0c.0 VGA compatible controller: ATI Technologies Inc ES1000 (rev 02) 09:0d.0 VGA compatible controller: ATI Technologies Inc Rage XL (rev 27)