Search Results

Search: Posts Made By: mohanm
1,882
Posted By mohanm
If root is the owner of the file, then you cant...
If root is the owner of the file, then you cant cant change/modify the permission of the file without root access.

Using chmod command you can change the file permission to give read/write access...
1,241
Posted By mohanm
try echo $SHELL also check whether the...
try
echo $SHELL

also check whether the SHELL environment variable is properly set in the .profile file in your home directory

same for the HOME environment variable also. This also should be...
3,354
Posted By mohanm
Just change mv $file $to/$bname
Just change

mv $file $to/$bname
10,440
Posted By mohanm
try using here document in shell script to...
try using here document in shell script to achieve your requirement

ssh srom@$a << EOF
password
/usr/local/bin/sudo su -
Scripts_you_to_run
exit
EOF
10,440
Posted By mohanm
you can use ssh to directly run commands on...
you can use ssh to directly run commands on remote server like this

ssh root@remote_host "/tmp/script.sh"

This will prompt you for password, unless you have copied your local user's public key...
12,722
Posted By mohanm
use printf in awk to make an aligned table, but...
use printf in awk to make an aligned table, but for this you should have your data to be space delimited or comma delimited uniformly throughout your input.

awk -F"," '{ printf "%-10s %-10s %-10s...
6,630
Posted By mohanm
Problem with multiple mail attachments
Hi everyone...

I am facing problem with the multiple mail attachments.


cd /work/mohan/pi_log/
mail_file='uuencode ahmedabad.csv ahmedabad.csv ; uuencode ahmedabad_devrpt_20110530.csv...
1,535
Posted By mohanm
my doubt got clarified. Thanks :)
my doubt got clarified. Thanks :)
11,684
Posted By mohanm
This will work fine. set i = ` expr $i + 2 `
This will work fine.

set i = ` expr $i + 2 `
1,535
Posted By mohanm
Confused with the usage of one variable usage
Hi All

I am not able to understand the usage of d# in the below variable declaration.

FILE_LOC contains the directory path

And also help me to know about what will be saved in the variable...
2,676
Posted By mohanm
can anyone help on this...:(
can anyone help on this...:(
2,676
Posted By mohanm
NET::FTP Problem
I am facing some problem in the NET::FTP Library in perl script in the HPUX. I am using NET::FTP to ftp files from 23 remote servers. Except 1 server everything is working fine. I am getting this...
4,314
Posted By mohanm
Hi thanks for your reply Both ggrep and nwak...
Hi thanks for your reply

Both ggrep and nwak is not available in the system.

Please any other way using awk.
4,314
Posted By mohanm
Print selection of line based on line number
Hi Unix gurus

Basically i am searching for the pattern and getting the line numbers of the grepped pattern. I am trying to print the series of lines from 7 lines before the grepped line number to...
Showing results 1 to 14 of 14

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