Shell script to find the wrong filename in a path and raise a trap for it
Example:
I have server name A with an IP : 125.252.235.455
I have an username /password to login into this server under SSH connection
In this server i have a path /apps/user/filename(Big.txt) [example]
Everyday we used to get the filename as Big.txt.
I want a shell script to monitor this path daily. If we receive any filename other than Big.txt , The shell script should highlight the new filename by saving it another log file.
If any file comes into that log file, it should raise an autoclarify incident trap via Bridge clarify. Command i use for trap :
---------- Post updated at 09:33 AM ---------- Previous update was at 09:30 AM ----------
Can anyone help me out quickly for the above request please?
If you are talking of amdocs clarify crm, then this is the wrong forum...
If you want help to check the presence of a file called Big.txt, that can be done, but the code you submitted I doubt anybody here looking at shell stuff be inspired...You will have to look in your specific product for support...
Okay sory folk....Please omit the trap section. Just reply to the below request alone.
I have server name A with an IP : 125.252.235.455
I have an username /password to login into this server under SSH connection
In this server i have a path /apps/user/filename(Big.txt) [example]
Everyday we used to get the filename as Big.txt.
I want a shell script to monitor this path daily. If we receive any filename other than Big.txt , The shell script should highlight the new filename by saving it another log file.
Hello.
Source file are in : /a/b/c/d/e/f/g/some_file
Destination is : /d/e where sub-directories "f" and "g" may missing or not.
After copying I want /a/b/c/d/e/f/g/file1 in /d/e/f/g/file1
On source /a is top-level directory
On destination /d is top-level directory
I would like... (2 Replies)
sqlplus -s usrname/password@dbSID <<-SQL >> logfile
@create_table.sql
commit;
quit;
SQL
I am running this script to execute an sql file.
I want to display the oracle error if anything found during execution of the sql file and exit from script.
Please suggest How do it. (1 Reply)
Hello All,
Here I am trying to find all the directories whose name starts with EFS or HOTFIX like in below example and below is my code but I don’t know why this is not working correctly.
drwxr-xr-x 3 qabuild denccefs 4096 Sep 23 21:36 EFS110929A_SOURCE/
-rwxrwxr-x 1 qabuild... (2 Replies)
Please help, I want script to check filename, size and date in specify path.
I want output as:
DATE: YYYYMMDD HH:MM
------------------------------------------------
fileA,filesize,yyyy mm dd HH:MM
fileA,filesize,yyyy mm dd HH:MM
fileA,filesize,yyyy mm dd HH:MM
fileA,filesize,yyyy mm dd... (1 Reply)
Hi ,
i have a scenario where...i have to put a check where if script is executing more than 15mins i have to kill that script and n retry again 2nd time.
i this case i can use background process to do it but i feel trap will be the efficent way to do so...
but i dont know much about it... (1 Reply)
how to trap the ctrl c in unix shell script
my script is running in while loop it should not be terminate with ctrl c.
if i press ctrl c while running script it shloud ignore the same.
please healp..........
thanks in advance (2 Replies)
################################################################
Copy this script to your path from where you want to search for all the files and directories in subdirectories recursively.
#################################################################
code starts here... (2 Replies)
Right now I have implemented autossh between ServerA & ServerB which are sun solaris based. I have made this shell script. I am facing one problem which I am going to discuss now.
The problem is when I sftp some files (suppose there is 10 files I have to transfer through sftp) from one server
to... (2 Replies)