Search Results

Search: Posts Made By: visingha
4,366
Posted By visingha
Hi All, The script which is in question is...
Hi All,

The script which is in question is used for deleting the files based on the timestamp which have been calculated using some logic.

The script is not calling any other script.

Now,...
3,814
Posted By visingha
Hi baunin, Your solution worked (it has...
Hi baunin,

Your solution worked (it has removed the missign conjunction error)but the find is still giving me the count of files present in "usr" directory.

I want to search only in the...
3,814
Posted By visingha
I have introduced the space but it is still not...
I have introduced the space but it is still not working.
3,814
Posted By visingha
No luck..it didn't work this was as well.
No luck..it didn't work this was as well.
3,814
Posted By visingha
I don't want to search in the directories...
I don't want to search in the directories starting from "usr".Thus, using the prune option. Could u please suggest whjy am i getting the missing conjuction error.
3,814
Posted By visingha
to search the current directory only
to search the current directory only
3,814
Posted By visingha
Find command problem
Hi All,

I am using following find command to delete the records older than 7 days but getting missing conjuction error.Kindly suggest:

The command is:

find <complete_dir_path> \(! -name...
4,366
Posted By visingha
Multiple PID for the same script
Hi All,

I have scheduled one script using cron but it's not running. On investigation i have found there are 4 PIDs for the same script.

Please suggest on the following:

1. Is it normal...
16,961
Posted By visingha
Problem solved...
Problem solved...
4,968
Posted By visingha
Hi Jim, Thanks for the reply. The solution...
Hi Jim,

Thanks for the reply. The solution worked really great.
16,961
Posted By visingha
Hello Eeveryone, when i run the script...
Hello Eeveryone,

when i run the script using ./ the script doesn't give any problem but when i schedule it using cron then while executing the ssh command it gives the following error:

ssh:...
4,968
Posted By visingha
Hi jim, Thanks for the response but could...
Hi jim,

Thanks for the response but could you please elaborate it.

The local server doesn't have /usr/bin/ssh though the remote server has this(/usr/bin/ssh).

How should I modify my code....
4,968
Posted By visingha
Cron job giving error while running SSH command
Hi All,

The script which i am using to SSH to remote server is working fine when i run is using ./ but when cron runs it it gives error that "ssh: not found"

please help!!!
16,961
Posted By visingha
Thanks Era for the explanation. I will get back...
Thanks Era for the explanation. I will get back to you in case i have any any problem after testing my script.
16,961
Posted By visingha
I mean if the exit status is 1 then how can we...
I mean if the exit status is 1 then how can we get the actual error message which the shell might have returned while running the command. (or do i have to use the user-defined message only)
8,045
Posted By visingha
Hi Harish, Use the set -x command after the...
Hi Harish,

Use the set -x command after the shebang command and use DEBUG alone(no need to write set -x there)
16,961
Posted By visingha
Hi Era, Thanks for the explanation and...
Hi Era,

Thanks for the explanation and correcting me.

Is it possible to send the error description(system-defined) corresponding to the exitstatus. Please let me know.

Is there any...
16,961
Posted By visingha
Hi Era, Thanks for the reply. As per...
Hi Era,

Thanks for the reply.

As per your reply , should i use the following code to trace the execution of commands:

ssh username@server 'find source_dir -name "*.txt" | xargs -n 1000 -i...
2,907
Posted By visingha
Move Command and exit status problem
Hi All,

I am using the following code to move files from one folder to another on the remote server:

ssh username@server <<EOF
cd source_dir
find . -type f -name "*.txt" |xargs -n1000 -i{}...
16,961
Posted By visingha
Move Command and exit status problem
Hi All,

I am using the following code to move files from one folder to another on the remote server:

ssh username@server <<EOF
cd source_dir
find . -type f -name "*.txt" |xargs -n1000 -i{}...
Showing results 1 to 20 of 20

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