Search Results

Search: Posts Made By: idro
2,285
Posted By idro
How to rename multiple file names?
Hi all,

I need to rename more file name in one command or script.
The files have this structure:

XxY - filename.doc

where X and Y are numbers and the x is the letter itself.

I need to...
Forum: Red Hat 02-05-2014
2,397
Posted By idro
yes it does
yes it does
Forum: Red Hat 02-05-2014
2,397
Posted By idro
Script not working if crontab scheduled
Hi all,

I'm working to a script with /bin/bash shebang.
The script works perfectly if I run from command line.

The script runs under a non root user and inside the commands are set with sudo...
24,809
Posted By idro
I'm sorry, but you intend for example, if my...
I'm sorry, but you intend for example, if my script is Test.sh e inside the code is:

#!/bin/bash
echo $1 > /tmp/output
bin_dir=$1
export bin_dir
exit 0

you mean I have to do:

#!/bin/bash...
24,809
Posted By idro
Ok, but I need to do a similar thing inside the...
Ok, but I need to do a similar thing inside the script.
24,809
Posted By idro
Bash script with export variables
Hi all guys,

how you can read in thread title, I'm deploying a bash script in which I have to export some variables inside it.
But (I think you know) the export command works only inside the...
Forum: AIX 07-26-2010
0
SEA
2,434
Posted By idro
SEA
Hi all,

I set up the following configuration on my system:

- An LPar with a virtual adapter, first one with a vlan id=703 and id port=13.

- The first adapter have to connect to a VIOS in...
Forum: Solaris 06-04-2010
6,026
Posted By idro
Great, the command now it works and i installed...
Great, the command now it works and i installed it

Thanks a lot

---------- Post updated at 04:56 AM ---------- Previous update was at 04:52 AM ----------

Hi,

Now I've just installed pptp...
Forum: Solaris 06-01-2010
6,026
Posted By idro
Problems with make install
Hi all,

I'm working on a server with Solaris 10 and I'm trying to install the pptp client version 1.7.2.

So, the generation of the execute file is ok, I run the command 'make' and I got the...
Forum: Red Hat 04-07-2010
1,925
Posted By idro
Read file
Hi,

I have a file like this:



I'd like read all the lines which are not starting with #, nor empty lines.
Every resulting line would be stored in a variable inside a while cycle.

Thank...
Forum: Red Hat 04-06-2010
4,031
Posted By idro
Ok, right. In the meantime you're writing, I...
Ok, right. In the meantime you're writing, I found the problem.

Thanks.
Forum: Red Hat 04-06-2010
4,031
Posted By idro
I'm sorry but I don't find any white space,...
I'm sorry but I don't find any white space, where's it? :(
Forum: Red Hat 04-06-2010
4,031
Posted By idro
Concatenating variables
Hi all,

I'm trying to do a very simple script, as you can see as follow:

#!/bin/bash

#Valorizzazione Token presenti nel file di properties
var_path_weblogic="`cat...
Forum: Red Hat 03-25-2010
5,014
Posted By idro
I'm logging with the line hereafter: if [[...
I'm logging with the line hereafter:

if [[ "$1" == "stop" ]]
then
stop
else
nohup vmstat $1 |eg >> monitoring.log &
fi

Further, I...
Forum: Red Hat 03-25-2010
5,014
Posted By idro
Ok, you're right and I'm sorry for this. I...
Ok, you're right and I'm sorry for this.

I read documentation e I've just done my script to handle my monitoring log files, that it's simply as follow:

#handle monitoring log
...
Forum: Red Hat 03-25-2010
5,014
Posted By idro
Some questions about Logrotate.conf
Hi all,

I have to configure the logrotate.conf file on some Linux RedHat servers.
So, by default I seen the file is as follow:

# see "man logrotate" for details
# rotate log files weekly...
10,541
Posted By idro
OK, I've just found the error. I works...
OK,

I've just found the error.

I works as follow:

`su -l accenture -c "/usr/bin/scp ${SCP_IN}/*.csv ${ORACLE_USER}@${ORACLE_IP}:${ORACLE_DIR}"`
10,541
Posted By idro
scp command and variables
Hi all,

I need a help.

I'm trying to do this command in a shell script:

`su -l accenture -c '/usr/bin/scp ${SCP_IN}/*.csv ${ORACLE_USER}@${ORACLE_IP}:${ORACLE_DIR}'`

but I obtain a no...
2,258
Posted By idro
Help to eliminate a warning message
Hi all,

I'm trying to run this command in a script:

utenti_conn=`ssh $MYUSER@$MYTRAP01IP sudo cat /opt/accenture/trapwriter/data/TMDVOD\-1\-\`date \+\%Y\%m\%d\`\*...
32,836
Posted By idro
GREAT!!! Now it works. thanx to all,...
GREAT!!!

Now it works.

thanx to all, guyz.
32,836
Posted By idro
It works, but now I obtain, 37.0. I'd want 37.
It works, but now I obtain, 37.0.
I'd want 37.
32,836
Posted By idro
Converting a decimal into integer
Hi all,

I'm trying to convert a decimal number into an integer number; I'm doing this:

n=`echo |awk '{ print "'"$mem"'"*10}'`

where the variable mem is equal to 3.7
I'd like to obtain 37,...
Showing results 1 to 22 of 22

 
All times are GMT -4. The time now is 01:11 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy