Software :: At Command Fails \ Intention Is To Get Itself Executed Every Minute?
Mar 31, 2011
Here is my script for at command. The intention is to get itself executed every minute.
Code:
logfile=/tmp/attest.log
loginterval=1
[code]....
View 4 Replies
ADVERTISEMENT
Jul 21, 2010
I want to be able to use Ctrl+R to have reverse-i search. Also if I press Shift+Up Arrow after typing the first few characters of a recently executed command then the shell should complete the command by finding the most recent commmand having the same first few characters.
View 1 Replies
View Related
Sep 7, 2010
When I run the following command from my macbook to my ubuntu server the terminal does not get released. It just sits there until I Control-C the command.
Code:
ssh user@my-server 'sudo /etc/init.d/nginx start'
When i login and then run the command everything works fine.
Code:
ssh user@my-server
sudo /etc/init.d/nginx start
[Code]....
View 1 Replies
View Related
Jun 7, 2011
Currently we are using Unix machine & the activity are logged in the file using following code used in profile
.profile code
# /ln/aud_root/dds_ibm/.profile
trap 'print "not allowed"' INT
trap 'print "not allowed"' QUIT
trap 'print "not allowed"' TSTP
[Code].....
View 2 Replies
View Related
Nov 2, 2010
I have a read command in the following script, but it does not get executed when I run the script. What's wrong with the read statement?
View 3 Replies
View Related
Feb 17, 2011
what is the tool to get the history inclduing the user name,command time and from which file/folder the command is executed.
View 1 Replies
View Related
May 23, 2010
I want to use PROMPT_COMMAND variable to build a history of all the commands i execute. So Basically i want to append the last executed command to my own command log file. How can i find the last executed command ?
I want to add PROMPT_COMMAND="echo $last_executed_command >> my_command_log" But I am not sure how to find the last executed command
View 2 Replies
View Related
Feb 22, 2010
Inspite of having 755 permissions on the chown command, it seems the command can be executed by the root only. I was under the impression that the 'x' permission for 'others' can give executable rights to the normal user too, which does not seem to be the case here. Just curious to know, if not the file perms itself, what controls the execution of the command?
View 6 Replies
View Related
Jul 19, 2010
I am working on Ubuntu 9.10.Since last two days there is issue while working with Terminal.Whenever I type a command and press enter it doesnt do anything. command is not executed. I guess its in loop. when I press Ctrl+C then it comes out of loop. this happens with all commands and I am not sure what is the problem.I have reinstalled Terminal but it did not worked.
View 8 Replies
View Related
Aug 28, 2009
I have one distro installed, LILO as the boot loader, and i wonder if it's possible to duplicate the lilo entries with an option which executes some script or command during, or after the boot.Actually, i installed a Slackware + autolaunching virtual machine, but i have two VM, so i need to autolaunch one of them. May i choose it from the very beginning ?
View 9 Replies
View Related
Jun 4, 2011
I wrote a simple script to see if firefox is running. However, the ps command is not executed, when I open the logfile I see: "DEBUG LINE 4" and not DEBUG LINE 5, so "ps -e" is never executed despite using the full path of the ps command.
Here is my script:
#!/bin/bash -l
# simple script to test if firefox is running...
PS=/usr/bin/ps echo "DEBUG $LINENO"
$PS -e | fgrep firefox echo "DEBUG LINE $LINENO"
View 6 Replies
View Related
Feb 27, 2011
logging in a server through putty in the same network when i executed last command its showing system ip logged in time and logged out time the output as followsthis is my system
oot pts1 xx.xx.xx day month date time in time out timeand similarly am geeting other than this likeroot :0day month date time still logged in this is from more than 3 days its logged in
View 2 Replies
View Related
Jun 18, 2009
I have tried every variation I can think of to get an 'at' to rm a file after a certain amount of time.
echo 'rm -f /var/www/media/images/tempProducts/XYZ.png' | at now + 2 minutes
In php:
$apCommand = "echo 'rm -f " . $sTempName . "' | at now + 2 minutes";
exec ($apCommand);
I have:
- pasted the command into the command line as root and it works fine so it seems to be rights related -- rm gets scheduled and the file gets deleted after 2 minutes
- tried every variation of sudo within the statement including making sure that apache is listed in sudoers
- chmod to 777
- chown to apache
The rm command does get scheduled into the 'at' queue but the rm never removes the file.
at -c (without adding sudo to the 'at' statement)
#!/bin/sh
# atrun uid=48 gid=48
# mail apache 0
umask 22
[Code]....
View 3 Replies
View Related
Mar 22, 2010
dd if=/dev/zero of=/var/images/abc.img bs=1M count=0 seek=2097152 dd: truncating at 2199023255552 bytes in output file `/var/images/abc.img': File too large
The dd commad fails here saying its truncating if I try same command with less value for seek it works dd if=/dev/zero of=/var/images/abc.img bs=1M count=0 seek=2088960
0+0 records in
0+0 records out
0 bytes (0 B) copied, 2.1e-05 seconds, 0.0 kB/s
Whats the reason behind this and how can this be solved ? Note that there is 3.9T available on disk for the above commands to execute.
View 4 Replies
View Related
May 5, 2011
I have an ImageMagick command that is something like this:
convert "/path/to/photo" -set comment "(c) my company" -resize WxH miff:- | composite -dissolve 30 -geometry +40+138 -quality 80 "/path/to/logo.miff" - jpeg:"/path/to/photo_for_public"
Directory /path/to is mounted over NFS (same network). Some options of fstab that might be helpful:
Both rsize and wsize are 3kB
hard,proto=tcp,timeo=600,retrans=2
Sometimes the imagemagick command fails and produces no file (/path to/photo_for_public might not emerge after command execution). Files might be from 100kB to 10MB. We usually re-run the command for files not generated. Sometimes it fails even twice, so we do it third time (hilariously funny, but even a third run can fail).
Are there any thoughts what may be wrong with my photo-processing setup?
View 1 Replies
View Related
Jul 12, 2010
On Red Hat Enterprise Linux Server release 5.4, I enter the command:net time set -I 192.59.196.66Where 192.59.196.66 is the IP address of a Windows Server 2008 time serverThe response is:/bin/date 071218072010.20 failed. Error was (Success)The actual clock time does not get updated. However, evidently it did really communicate with the time server on 192.59.196.66, because the value in the response 071218072010.20 does correspond to the time on the time server, albeit in the somewhat bizarre format MMDDHHMMYYYY.SS.
View 1 Replies
View Related
May 13, 2011
I have a problem with my filezilla (or my ftp server). When I want to connect to my ftp server (and also other ftp servers!), after MLSD command, I get a "Connection timed out" error.
Log:
Code:
Status: Resolving address of khanemashroote.ir
Status: Connecting to 46.4.196.109:21...
Status: Connection established, waiting for welcome message...
Response: 220 ProFTPD 1.3.4rc2 Server (Debian) [::ffff:46.4.196.109]
Command: USER badihi
Response: 331 Password required for badihi .....
Command: MLSD
Error: Connection timed out
Error: Failed to retrieve directory listing
View 1 Replies
View Related
Dec 26, 2010
I have a custom command I've made to quickly shut down all of my xen instances.
Code:
[root@LCENT02 ~]# virtdown
-bash: syntax error near unexpected token `2'
As you can see it fails when I try to run it on the command line. It is stored in an ~/.env file in my home directory. What is odd to me is if I open the .env file and copy the command from there and paste it into the command line, it does actually work!
Code:
[root@LCENT02 ~]# for i in `virsh list | grep -v -e Id -e --- -e Domain-0 | awk '{print $1}'`; do virsh shutdown $i; done
Domain 1 is being shutdown
Domain 2 is being shutdown
Domain 3 is being shutdown
And this is how I have the command entered into my .env file:
Code:
alias virtdown="for i in `virsh list | grep -v -e Id -e --- -e Domain-0 | awk '{print $1}'`; do virsh shutdown $i; done
Why would this command work if you paste it onto the command line but not use the custom command virtdown?
View 1 Replies
View Related
Nov 18, 2009
I installed FC 12, 64 bit yesterday. I downloaded open office and unpacked it. I then issued the command rpm -Uvh *.rpm this fails due to many dependencies Some of these are:
[Code]...
how to "link" or make these and presumably other libraries searchable.
View 1 Replies
View Related
Mar 8, 2010
Ubuntu Server 8.04. I have 2 servers in the same rack, on the same subnet, using the same DNS servers and build with the same media. On one of them the following command fails
Code:
apt-get install squid
On the other on the package was installed with out any problems. I have checked the /etc/apt/sources.list files and they are identical. Actually, it could not find mutt either.
View 5 Replies
View Related
Feb 19, 2011
Having an odd problem running a mysqldump via crontab. I have the script running on other servers and they work fine, so not sure how to actually troubleshoot, but the script looks like the following;
If I run it as a cronjob as root, it finishes in a second and a 20k file is there. If I run it from the command line as root it does the backup (takes a few minutes) but does complete the backup and can be unzipped and read successfully.
View 3 Replies
View Related
May 26, 2010
I've writte a small Munin plugin using python, which basically runs a shell command, and write the output to a file. For some reason the script fail quite often, and it seems to be failing at the "commands.getoutput" statement. This is what's leading up to that statement:
[Code]..
View 4 Replies
View Related
Dec 20, 2009
How can I install the dict file to look works?
I am running SUSE 11.1
Here is the error:
View 2 Replies
View Related
Dec 2, 2009
I've successfully mounted a network share with mount.cifs for the past 2 years using fstab with credfile.
[Code]....
Yesterday I moved this system to a new datacenter, but did not alter fstab or the credfile. The //server/share directory has IP rules in place, but this was updated with the new system IP while we moved the system. Now, I am mysteriously unable to automount //server/share. The local error is 13 (permission denied). The Windows server we are mounting returned a code that is defined as "username is valid but password is incorrect" Again - no changes (content or permissions) were made to my credfile or fstab entry. I've restarted netfs a few times, including rebooting the system twice. What is baffling is I can successfully mount //server/share via command line: Code: mount -t cifs //server/share /mnt/mycooldir -o username=foobar,password=1234
The username and passwords are identical in credfile and the mount options - I copied & pasted username / password from the credfile itself.
View 2 Replies
View Related
May 14, 2010
what the command is for the System Tray, so thought I'd ask here. Note I am not asking how to put a system tray on the panel - I know I can add a notification area, but when I reboot there will be 2 of them, so this is not what I want.
I just need to be able to initialise it when it fails to load. Since my upgrade to Lucid, this has happened a couple of times, so expect it will happen again soon enough.
View 8 Replies
View Related
Jul 22, 2010
I'm trying to build the package zaptel on debian, but I'm encountering two errors:
1- When I try to run the "make menuselect" command, I get an error stating that I need ncurses which is missing. I tried to get it installed but didn't get to do it yet.
2- After that, there's the command "make" I think it's to build the package. Yet again this fails, and the error I get is "you do not appear to have the sources for the 2.6.26-2-686 kernel installed".
View 3 Replies
View Related
Jun 30, 2011
I am trying to fix a perl script, and I really suck at perl. But I think this problem will be easy for people who know it.
The problem is, I have an old setup script someone wrote many years ago. It fails if the standard shell is dash and not bash. The only way I've gotten it to work is to point /bin/sh to bash. I looked thru the script and it uses "system" many places, and I think that's the problem.
I searched for it and found this link:url
My plan is to include this function:
Code:
sub system_bash {
my @args = ( "bash", "-c", shift );
system(@args);
}
Then I could simply change all calls to system into system_bash and it should work?
The parameter to the system calls is usually some variable. What if the parameter is a list already? Do I need to test for it somehow, and if it's a list, prepend "bash" and "-c" to the list? How do I do that?
In the script there are lots of places like this:
my $error = system($cmd);
if ($error) {
die/warn "some error message";
}
Shouldn't there be a return in the system_bash function?
View 8 Replies
View Related
Dec 8, 2009
I need to add -audit to the process /usr/bin/Xorg :0 -nr -verbose -auth /var/run/gdm/auth-for-gdm-MTmpH6/database -nolisten tcp vt1
And have added -audit to the line in /etc/X11/xdm/Xservers but with no luck. I can't seem to find where this thing is getting launched from!
View 1 Replies
View Related
Oct 19, 2010
i have install php and make proper confgiuration as said in various books and forums.but |all what i gotis just blankpage which means it knows that thereis the file at given folder but it cannotexecute.
View 1 Replies
View Related
Jan 18, 2011
I have a script scheduled to run with Crontab at 5am each weekday.The script is all good and executes manually (is just a simple stop/start of a service)I have reason to believe that it is not executing according to schedule.I am looking to see when a script was last executed.The script is executing accordingly (long story short, I forgot it was Tuesday). I would still like to know how to check a last-execution time.
View 1 Replies
View Related