Hi everyone,
I am in the process of trying to decide the correct way to solve a particular scripting/email issue I have and would appreciate any advice.
We have a cronjob running every 10 mins to check disk size on the server and if this exceeds a certain percentage then it will email a... (2 Replies)
I have one shell script which is being accessed by many jobs at same time.
I want to make the script such that , other job should wait for the script if script is being used by some other job. Is there any way to implement it in script level ?
Gops (1 Reply)
I'm using a shared server on Hostgator (Linux CentOS). I'm trying to set a cron job using the Control Panel that will check if its already running before starting a new one.
I've tried the following...
* * * * * &&
but I get this error emailed to me...
/bin/sh: line 0:
Any... (5 Replies)
Hi,
I am running a shell script from a central server to multiple remote servers using the following code:
application_check()
{
# Linux/UNIX box with ssh key based login
SERVERS=`cat /tmp/server-details`
# SSH User name
USR="user"
# create new file
> /tmp/abc.log
# connect... (2 Replies)
Hey guys,
I want to paste a code in a .php file via a bash script. I am on ubuntu 10.04.
The problem is if the values for $ aren't present, then all of them would be removed by the script.
An example of my script (I modified it for this thread to prevent it from being overly complicated)
... (2 Replies)
Sorry if this has been answered. I did search both Google and this site and did find this post: unix.com/unix-dummies-questions-answers/152992-how-ignore-errors-script.html
However, it wasn't answered.
I have the same question - how do you prevent a tcsh script from terminating when the... (4 Replies)
I have a script which do validation check and perform code migration from one env. to another, this is built for users/developers.
How can I prevent this shell script from copy or read from users, as they can modify it and run it as per their requirement where as this has to be standard script and... (1 Reply)
Hello
i have server cpanel on centos 6
an there is a client used script to hack other accounts
the script is like this
_____
__________
<?php
$auth_pass = "7815696ecbf1c96e6894b779456d330e";
$color = "#df5";
$default_action = 'FilesMan';
$default_use_ajax = true;... (1 Reply)
Greetings Experts,
I am on AIX using ksh; I am processing the input files and generating a awk_output.txt file using AWK. By reading that awk_output.txt file, I am building a output.html file which is cat and then fed to /usr/sbin/sendmail .When the shell script is triggered through command... (2 Replies)
Discussion started by: chill3chee
2 Replies
LEARN ABOUT PHP
mcrypt_generic
MCRYPT_GENERIC(3) 1 MCRYPT_GENERIC(3)mcrypt_generic - This function encrypts dataSYNOPSIS
string mcrypt_generic (resource $td, string $data)
DESCRIPTION
This function encrypts data. The data is padded with " " to make sure the length of the data is n * blocksize. This function returns the
encrypted data. Note that the length of the returned string can in fact be longer than the input, due to the padding of the data.
If you want to store the encrypted data in a database make sure to store the entire string as returned by mcrypt_generic, or the string
will not entirely decrypt properly. If your original string is 10 characters long and the block size is 8 (use mcrypt_enc_get_block_size(3)
to determine the blocksize), you would need at least 16 characters in your database field. Note the string returned by mdecrypt_generic(3)
will be 16 characters as well...use rtrim($str, "