Unix Command to search file
Hi
Can anyone tell me how to get filename from server using
UNIX command in ABAP program.I have requirement to search file in server using date criteria.
should i use 'FIND' command to search file??
Plz do needful..
You need to use SM69 to define command and use it in your report.
Regards,
Christophe
Similar Messages
-
Unix command to delete files with .cache extension
I was wondering if anyone knew of a unix command that can be sent to another computer that will delete all files on the hard drive with a certain extension such as .cache.
Like: rm *.cache
Thank you!Well, I don't recommend it, but if you want to fubar the computer, send this as root:
find / -name "*.cache" -exec rm -f {} \; -
Unix command for turning file sharing off
Is there a Unix command I can use to turn off file sharing on Leopard ( as well as Tiger ) laptops? I don't mean a command to kill it for the session, I need it off even if the system is restarted. Yes, I can do it though the Preferences, but I need to do it to over 200 some laptops. We have ARD and if we had a Unix command to send to turn file sharing off that would be helpful. Thank you.
There is a CLI for just about everything. From the [OS X Leopard Security Configuration Guide|http://images.apple.com/server/macosx/docs/LeopardSecurity_Config20080530.pdf]:
To disable FTP.
launctl unload -w /System/Library/LaunchDaemons/ftp.plist
To disable SMB.
defaults delete /Library/Preferences/SystemConfiguration/com.apple.smb.server EnabledServices
launctl unload -w /System/Library/LaunchDaemons/nmbd.plist
launctl unload -w /System/Library/LaunchDaemons/smbd.plist
To disable AFP.
launctl unload -w /System/Library/LaunchDaemons/com.apple.AppleFileServer.plist -
Unable to run UNIX command after uploading file using webutil_file_transfer
OS: UNIX Solaries , Oracle Application Server 10g
I designed a form contains 2 buttons
1- <b>Upload</b> button: to let the user upload form.fmb file to the application server using webutil_file_transfer function
2- <b>Compile</b> button to compile the uploaded form in the applications server to generete the FMX using the following command
host('/bin/bash /u01/oracle/runtime/test/frmkfccmp.sh >/u01/oracle/runtime/test/log.log'); The problem is after uploading the file to the server, the Compile button don't work, although it works well if I close the form then open it again and press the Compile button without pressing the <b>Upload</b> button
Any help is appreciated
Thanks and RegardsAdd the weblogic server's bin directory to your PATH. You will need to a couple of WLS jars to the CLASSPATH. There might be something in the installation/setup documentation that tells you all this. I have only used WLS 5.1 and 7.0.
-
Grep command to search files which have names of same pattern
Hi,
I am new to solaris.
I am trying to grep all the files in a directory which have names of same pattern.
I had done this in linux but in solaris it is not working.
e.g. i have two files setup.log and setup.log.full
grep -l 'setup*' *
by this command it works fine on linus but on solaris it is not working.
Please let me know where am i wrong.
regards,How many files do you have in this directory? It could be that the expansion of the file list is too large for the shell to handle? Or that first asterisk is expanding to something unusable. I'm surprised this works in Linux. What shell are you using in Linux and what shell are you using in Solaris? What error message do you get when you try to run this in a Solaris system?
Maybe try to use something like this:
ls -1 | awk '{ print "grep -l "$1" "$1 }' | sh -
How to generate a empty file in AL11 using ABAP and unix command
Hi Experts,
when load infopackage triggers it will search file from AL11 if file is available it will get loaded successfully. When there is no file in AL11 error while opening file (orgin A) and the load will fail. At this level i have to write a abap code using unix command to generate a empty file.
Is there any way to achieve the above requirement.
Thanks
VaraHi,
If i get your requirement properly then you want to create a blank file if there is no file on the application server so that your infopackage does not fail, am i correct.
If this is your requirement then this can be easily done if you use process chain to load the file via infopackage. Follow the following steps:
1. Add a ABAP program before the infopackage and check if the file is present on the server or not. Use a simple ABAP statement OPEN DATASET <FNAME>. Check the SY-SUBRC after this statement if it is not 0 then it means that the file does not exist on the application server.
2. Once you have established that the file is not present create a flat file using a code similar to the below one
OPEN DATASET FILENAME FOR OUTPUT IN TEXT MODE
MESSAGE D_MSG_TEXT.
IF SY-SUBRC NE 0.
WRITE: 'File cannot be opened. Reason:', D_MSG_TEXT.
EXIT.
ENDIF.
* Transferring Data
LOOP AT INT_table.
TRANSFER INT_table-field1 TO FILENAME.
ENDLOOP.
* Closing the File
CLOSE DATASET FILENAME.
3. Add your infopackage step after this ABAP program in your process chain.
I hope this helps.
Best Regards,
Kush Kashyap -
Unix command needed to search alert log
Hi. Im trying to search the alert log file to see if there is any thing related to the checkpointing process.
Specifically Im looking for anything that includes "Checkpoint not complete".
If anyone knows the command for searching the file in UNIX for this then please post here!
Many thanks
DAHi Dan,
"Checkpoint not complete".In UNIX try: http://www.dba-oracle.com/op_unix_16_cat_grep_commands.htm
grep "checkpoint not complete" /u01/app/..../alertSID.log
In Windows:
http://www.dba-oracle.com/t_windows_alert_log_script.htm
I e-mail myself important alert log messages, using this technique:
http://www.remote-dba.cc/oracle_tips_table_alerts.htm
Also, you can read the alert log from SQL, if you want:
http://www.dba-oracle.com/t_oracle_alert_log_sql_external_tables.htm
Hope this helps. . .
Donald K. Burleson
Oracle Press author
Author of "Oracle Tuning: The Definitive Reference":
http://www.dba-oracle.com/bp/s_oracle_tuning_book.htm -
Using UNIX command to copy desktop files/folders
Hello All. I need help using UNIX command(s) to copy text documents and or folders from my lab computers to my desktop at home. Since I have such a slow connection, I think this will work best. I need help with the cp command and the path mostly. Since all files would be in folders on the desktop (including documents (that "missed" the folders), I believe I could simply copy desktop contents? Thanks, J Langlois
What you want to do is SCP (secure copy) your documents to your remote host.
send this command to the computer with the documents
scp ~/Desktop/FILEOR_FOLDERNAME USERNAME@REMOTE_COMPUTER:~/Desktop/
Replace all the stuff in UPPERCASE with the correct vales for your situation.
Mini (Intel Core Duo) Mac OS X (10.4.8) -
Unix command to make list of file name
Hi Gurus,
I have seen post how to process multiple file from johngoodwin.blogspot.com.
But what is the equlivalent command in unix to list all file names.
I want one text file will contain all text file name and another text file will contain all csv filenames.
Need some suggestion.Please help.
Thanks in advance.Hi please follow below steps.
vi yourfilename.sh
then in edit mode put your command
then save it by pressing esc : q (escape colon q)
Now your file will be there. just run that script file in OS Command.But that file should be accessible or else give the full path for that script file.
Thanks -
Unix command to find certain files
hello,
i have a powerbook g4 running leopard... i want to find all files related to a certain program or app. What would the unix command be to find all files related to a certain program or app.
Also... is there unix commands to find all related preferences or cached items?
Any help would be great.find / -name "*.doc"
where "*.doc" would find all files ending in .doc
and / is the root (top most) directory. You may specify a different starting point
find $HOME -name "*.pdf"
or even multiple starting directories
find ~username1 ~username2 ~username3 -name "*.zip"
You may specify more than one type of file to locate
find $HOME \( -name "*.dmg" -or -name "*.plist" \)
You may also want to look at the xargs command, as well as find's "-print0" option and xargs' "-0" option
find $HOME -name "*.txt" -print0 | xargs -0 grep "magic" -
Unix command to create a copy of file from unix directory
Hi guys,
what is the Unix command to create a copy of file from unix directory?
Thanks a lot!If you haven't noticed, this is a ABAP forum.
You can go to the UNIX thread instead and post it there,
SAP on UNIX
You can expect answers there -
What Unix command is used to assert a file or folder's color label assignment?
I'm doing some scripting to automate processes on my XSan. One of the functions I find I'm doing over and over frequently is changing file ownership, permissions, changing the color of the parent folder based on the status of the files in it, and then locking the file. I know the UNIX equivalents for three of the four commands:
chown-- for the file ownership
chmod-- for the permissions
chflags-- for the lock bit
but I've been looking through man pages all day and can't find what command asserts the file or folder's "label" color attribute. I'd rather do this in command line that in Automator, as it's faster and I have hundreds of folders containing files that I need to lock down. My boss is considering replacing XSAN with Compellent, and I'm trying to show how easy MacOS is to manage when you can script everything involved in maintaining it. This will go a long way towards making that case.Wrong forums. Try https://discussions.apple.com/community/mac_os/mac_os_x_technologies#/?tagSet=10 48
-
Convert .fmb and .rdf files to .txt using unix commands
I want to know how to convert .fmb and .rdf files to .txt using unix commands
Example ACCT_ACCOUNTS_ADMIN.fmb ---> ACCT_ACCOUNTS_ADMIN.txt
agent_balances.rdf ---> agent_balances.txt
NOTE: i don't want to use form builder or report builder.
is there anyone who can help me
Regards
HarshThanks it helped and Just to add little bit on it
for i in `ls *.fmb`
do
f60gen module=$i userid=$unpw forms_doc=yes batch=yes
done
Might help someone too.
Thanks -
How can I import eex files into Applications EUL from the unix command line
How can I import *.eex and *.dis files into an Applications EUL from the unix command line?
ThanksHi
The simple answer is you either have to use the client tool DIS51ADM to import files using the command line (Discoverer Admin is a windows only client tool), or the Java command line which needs a browser.
In theory if you have a browser running on your Unix box you may be able to use the Java command line to make this work.
Best wishes
Michael -
How to Move file / call UNIX command using ABAP Program
Hi, ABAP Guru.
I need to Cut & Paste file (Move file from one location to another location) on Network Shared Drive using ABAP program.
But I can't figured out how to do this and what ABAP Command / FM / Method (and maybe UNIX command) that being used.
Please give me the advice.
Best regard and Thank you all.
Nattapash C.all methods for your requirements should be in class CL_GUI_FRONTEND_SERVICES
Maybe you are looking for
-
How do I use my iPad as a second screen with my macbook pro?
I've got splashtop streamer for my ipad. In school my computer teacher has two monitors and she is able to drag stuff from one screen to the other. If i was streaming to my ipad, how could i use it as a second screen? and how could I do this with any
-
How to use different essbase member combinations in columns in obiee
Hello, I am trying to build a report in obiee which has an essbase ASO cube in the background. We have a measure 'A' that exists in BegBalance and a measure 'B' that exists in months Jan through Dec. So in my criteria, i set the dimensions i need alo
-
Error while creating the table
ORA-01658: unable to create INITIAL extent for segment in tablespace APPS_TS_TX_DATA
-
Sync ical between two Macs?
Hi, I have a Mac at home and a mac at work. Is it possible for my ical to sync on both macs so that i can view the same calenders on both macs? It appears to be signed intop icloud on both macs but the calenders dont sync or display the same info? Bo
-
Elements 11 crashing When using Process Multiple Files
When I use Process Multiple Files and click on the Browse button, the wheel turns and doesn't work anymore. It just stays there for awhile. I would reinstall, but I don't know where the product key is.