How to redirect CELLCLI output to text file
Hi,
I would like to redicrect the output of the cellcli command to a text file .
For example , how to redirect the output of this command to a text file on /tmp
CellCLI> list metrichistory where objectType = 'CELL' -
and name = 'CL_TEMP'Thanks
cellcli has spooling capabilities similar to sqlplus:
CellCLI> help spool
Usage: SPO[OL] [<filename> [ CRE[ATE] | REP[LACE] | APP[END]] | OFF ]
Purpose: SPOOL <filename>: Direct the results to the file <filename>.
SPOOL OFF: Turn off the spooling.
SPOOL: Check the current spooling status.
Arguments:
<filename>: The filename where the results will be output.
Options:
[APPEND]: If the filename already exists, the following output will
be appended to the file. Without this option, the existing file
contents will be replaced.
[CREATE]: If the filename already exists, an error is reported.
[REPLACE]: If the filename already exists, the contents will be
replaced. This is the default, when no option is provided.
Examples:
spool myfile
spool myfile append
spool off
spoolBut if you are trying to script it, it would be easier to just run it command line:
# cellcli -e "list metrichistory where objectType = 'CELL' and name = 'CL_TEMP'" > /tmp/CL_TEMP.txtAlso look into dcli which allows you to run cellcli commands on one or more cells from a compute node.
Good luck.
Similar Messages
-
Junk Characters in Report Output(While redirecting the output to text file)
While generating the report (Reports 9i) output to a text file, I get the report output that contains junk characters. The other output formats viz. pdf, rtf have no problem.
Please share how to correct it.
Thanks.Yes, the MODE is set to Character and DESFORMAT is set to DFLT.
Still the problem exists.
Any idea please? -
How to list the contents of an OSX directory, and output to text file?
hello there any hints with any known program that does following
I have recorded my music directory to DVD and now i would like to make an .txt file what the dvd contains...cos its way of hand to write all 100xx files by hand...
How to list the contents of an OSX directory, and output to text file?
any prog that does that? any hints?
best regardsThis script makes a hierarchical file listing all files in a folder and subfolder:
Click here to launch Script Editor.
choose folder with prompt "Choose a folder to process..." returning theFolder
set theName to name of (info for theFolder)
set thepath to quoted form of POSIX path of theFolder
set currentIndex to theFolder as string
do shell script "ls -R " & thepath returning theDir
set theDirList to every paragraph of theDir
set newList to {"Contents of folder \"" & theName & "\"" & return & thepath & return & return}
set theFilePrefix to ""
repeat with i from 1 to count of theDirList
set theLine to item i of theDirList
set my text item delimiters to "/"
set theMarker to count of text items of thepath
set theCount to count of text items of theLine
set currentFolder to text item -1 of theLine
set theFolderPrefix to ""
if theCount is greater than theMarker then
set theNestIndex to theCount - theMarker
set theTally to -1
set theFilePrefix to ""
set theSuffix to ""
repeat theNestIndex times
set theFolderPrefix to theFolderPrefix & tab
set theFilePrefix to theFilePrefix & tab
if theTally is -1 then
set theSuffix to text item theTally of theLine & theSuffix
else
set theSuffix to text item theTally of theLine & ":" & theSuffix
end if
set currentIndex to "" & theFolder & theSuffix
set theTally to theTally - 1
end repeat
end if
set my text item delimiters to ""
if theLine is not "" then
if word 1 of theLine is "Volumes" then
set end of newList to theFolderPrefix & "Folder: > " & currentFolder & return
else
try
if not folder of (info for alias (currentIndex & theLine & ":")) then
set end of newList to theFilePrefix & tab & tab & tab & "> " & theLine & return
end if
end try
end if
end if
end repeat
open for access file ((path to desktop as string) & "Contents of folder- " & theName & ".txt") ¬
with write permission returning theFile
write (newList as string) to theFile
close access theFile -
How to get the content of text file to write in JTextArea?
Hello,
I have text area and File chooser..
i wanna the content of choosed file to be written into text area..
I have this code:
import java.awt.Container;
import java.awt.FlowLayout;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.io.File;
import javax.swing.JButton;
import javax.swing.JFileChooser;
import javax.swing.JFrame;
import javax.swing.JLabel;
import javax.swing.*;
public class Test_Stemmer extends JFrame {
public Test_Stemmer() {
super("Arabic Stemmer..");
setSize(350, 470);
setDefaultCloseOperation(EXIT_ON_CLOSE);
setResizable(false);
Container c = getContentPane();
c.setLayout(new FlowLayout());
JButton openButton = new JButton("Open");
JButton saveButton = new JButton("Save");
JButton dirButton = new JButton("Pick Dir");
JTextArea ta=new JTextArea("File will be written here", 10, 25);
JTextArea ta2=new JTextArea("Stemmed File will be written here", 10, 25);
final JLabel statusbar =
new JLabel("Output of your selection will go here");
// Create a file chooser that opens up as an Open dialog
openButton.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent ae) {
JFileChooser chooser = new JFileChooser();
chooser.setMultiSelectionEnabled(true);
int option = chooser.showOpenDialog(Test_Stemmer.this);
if (option == JFileChooser.APPROVE_OPTION) {
File[] sf = chooser.getSelectedFiles();
String filelist = "nothing";
if (sf.length > 0) filelist = sf[0].getName();
for (int i = 1; i < sf.length; i++) {
filelist += ", " + sf.getName();
statusbar.setText("You chose " + filelist);
else {
statusbar.setText("You canceled.");
// Create a file chooser that opens up as a Save dialog
saveButton.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent ae) {
JFileChooser chooser = new JFileChooser();
int option = chooser.showSaveDialog(Test_Stemmer.this);
if (option == JFileChooser.APPROVE_OPTION) {
statusbar.setText("You saved " + ((chooser.getSelectedFile()!=null)?
chooser.getSelectedFile().getName():"nothing"));
else {
statusbar.setText("You canceled.");
// Create a file chooser that allows you to pick a directory
// rather than a file
dirButton.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent ae) {
JFileChooser chooser = new JFileChooser();
chooser.setFileSelectionMode(JFileChooser.DIRECTORIES_ONLY);
int option = chooser.showOpenDialog(Test_Stemmer.this);
if (option == JFileChooser.APPROVE_OPTION) {
statusbar.setText("You opened " + ((chooser.getSelectedFile()!=null)?
chooser.getSelectedFile().getName():"nothing"));
else {
statusbar.setText("You canceled.");
c.add(openButton);
c.add(saveButton);
c.add(dirButton);
c.add(statusbar);
c.add(ta);
c.add(ta2);
public static void main(String args[]) {
Test_Stemmer sfc = new Test_Stemmer();
sfc.setVisible(true);
}could you please help me, and tell me what to add or to modify,,
Thank you..realahmed8 wrote:
thanks masijade,
i have filter the file chooser for only text files,
but i still don't know how to use FileReader to put text file content to the text area (ta) ..
please tell me how and where to use it..How? -- See the IO Tutorials on Sun for the FileReader (and I assume you know how to call setText and append in the JTextArea).
Where? -- In the actionPerformed method (better would be a separate thread that is triggered through the actionPerformed method, but that is probably beyond you at the moment), of course.
Give it a try. -
HOW TO DOWNLOAD SAP OUTPUT TO EXCEL FILE
Hi SAP Gurus,
I would like to ask if you have any Function Module or codes on how to download SAP Output into Excel file. Thanks! Hope you could help me.You can transfer the contents of internal table to excel using this code..
data: begin of itab occurs 0,
vbeln like vbak-vbeln,
posnr like vbap-posnr,
end of itab.
select vbeln
posnr
from vbap
up to 20 rows
into table itab.
* EXCEL sheet using OLE automation.
INCLUDE OLE2INCL.
* handles for OLE objects
DATA: H_EXCEL TYPE OLE2_OBJECT, " Excel object
H_WORK TYPE OLE2_OBJECT,
H_SHEET TYPE OLE2_OBJECT,
H_CELL TYPE OLE2_OBJECT,
V_COL LIKE SY-TABIX. " column number of the cell
DATA:
V_STEP(30),
V_FILE LIKE RLGRAP-FILENAME.
* tell user what is going on
CALL FUNCTION 'SAPGUI_PROGRESS_INDICATOR'
EXPORTING
* PERCENTAGE = 0
TEXT = 'Creating Excel...'
EXCEPTIONS
OTHERS = 1.
* start Excel
V_STEP = 'Starting Excel'.
CREATE OBJECT H_EXCEL 'EXCEL.APPLICATION'.
PERFORM ERR_HDL.
SET PROPERTY OF H_EXCEL 'Visible' = 1.
* CALL METHOD OF H_EXCEL 'OPEN' EXPORTING #1 = 'C:DMC_REC.XLS'.
* PERFORM ERR_HDL.
* tell user what is going on
CALL FUNCTION 'SAPGUI_PROGRESS_INDICATOR'
EXPORTING
* PERCENTAGE = 0
TEXT = 'Adding Data to Excel...'
EXCEPTIONS
OTHERS = 1.
* Get the list of workbooks
V_STEP = 'Preaparing Excel'.
CALL METHOD OF H_EXCEL 'WORKBOOKS' = H_WORK.
PERFORM ERR_HDL.
** Add new workbook (create a file)
CALL METHOD OF H_WORK 'ADD'.
PERFORM ERR_HDL.
* Get the created worksheet
************************Sheet Number
CALL METHOD OF H_EXCEL 'WORKSHEETS' = H_SHEET EXPORTING #1 = 3.
************************Sheet Number
PERFORM ERR_HDL.
* Activate (select) the first sheet
CALL METHOD OF H_SHEET 'ACTIVATE'.
PERFORM ERR_HDL.
* tell user what is going on
CALL FUNCTION 'SAPGUI_PROGRESS_INDICATOR'
EXPORTING
* PERCENTAGE = 0
TEXT = 'Adding Data to Excel...'
EXCEPTIONS
OTHERS = 1.
* output column headings to active Excel sheet
V_STEP = 'Adding data to Excel'.
LOOP AT ITAB.
V_COL = SY-TABIX.
PERFORM FILL_CELL USING 1 V_COL ITAB-vbeln.
PERFORM FILL_CELL USING 2 V_COL ITAB-posnr.
ENDLOOP.
V_STEP = 'Releasing Excel'.
FREE OBJECT H_EXCEL.
PERFORM ERR_HDL.
H_EXCEL-HANDLE = -1.
*& Form ERR_HDL
* text
* --> p1 text
FORM ERR_HDL.
IF SY-SUBRC <> 0.
WRITE: / 'Error in processing Excel File:', V_STEP.
STOP.
ENDIF.
ENDFORM. " ERR_HDL
*& Form FILL_CELL
* text
* -->P_1 text
* -->P_1 text
* -->P_1 text
FORM FILL_CELL USING ROW COL VAL.
CALL METHOD OF H_EXCEL 'Cells' = H_CELL
EXPORTING #1 = ROW #2 = COL.
PERFORM ERR_HDL.
SET PROPERTY OF H_CELL 'Value' = VAL .
PERFORM ERR_HDL.
ENDFORM. " FILL_CELL -
Redirect SM50 output on unix file
Hello,
how can we execute daily SM50 daily and redirect html output on unix file?
I Tried SE38, execute SM50 succefully, but no way to redirect output of this transaction on a unix file ?
Thanks in advance.Hi majda,
Hope you are doing good.
Maybe check /nSM49 and create a OS command using ">>" operator Divyanshu mentioned:
Restrict Authorizations for Executing External Commands - SAP NetWeaver Application Server ABAP Security Guide - SAP Lib…
Thank you!
Kind Regards,
Hemanth
SAP AGS -
How to change the output as text format in Apps R12.1.3
Hi All,
Currently iam trying to modify the Java Concurrent Program (FDExtractAndFormatting) in Batch Payment Process. This Program is generated in text format in 11i APPS. Now we are upgrading to R12.1.3. In R12.1.3 output is coming as PDF format. Here my requirement is how to change the output as text format in R12.1.3 also.
Please do the needful and suggest me.
Regards,
Jagadeesh1. It is seeded java concurrent program. Some attributes are missing from 11i to R12. In 11i it is a text format.So i have to investgate on how to retrive those attributes in R12. What is the concurrent program name?
Have you tried to change the output and submit the request?
2. Once all are attributes are coming in PDF format. Client wants to open same output in text format as it is 11i (In R12 it is generated in PDF format).If the above does not help, please log a SR.
Thanks,
Hussein -
Hi
I have two master & detailed table for eg emp,dept.
I need my output in text file with delimiter ~ in the below format.
10~accounting~newyork
7782~CLARK~MANAGER~7839~6/9/1981~2450.00~10
7839~KING~PRESIDENT~11/17/1981~5000.00~10
7934~MILLER~CLERK~7782~1/23/1982~1300.00~10Rgds
Vkwell, go for it! Don't let us stop you ;)
SQL> set colsep '~'
SQL> select *
2 from emp
3 /
EMPNO~ENAME ~JOB ~ MGR~HIREDATE ~ SAL~ COMM~ DEPTNO
----------~----------~---------~----------~---------~----------~----------~----------
7369~SMITH ~CLERK ~ 7902~17-DEC-80~ 800~ ~ 20
7499~ALLEN ~SALESMAN ~ 7698~20-FEB-81~ 1600~ 300~ 30
7521~WARD ~SALESMAN ~ 7698~22-FEB-81~ 1250~ 500~ 30
7566~JONES ~MANAGER ~ 7839~02-APR-81~ 2975~ ~ 20
7654~MARTIN ~SALESMAN ~ 7698~28-SEP-81~ 1250~ 1400~ 30
7698~BLAKE ~MANAGER ~ 7839~01-MAY-81~ 2850~ ~ 30
7782~CLARK ~MANAGER ~ 7934~09-JUN-81~ 2450~ ~ 10
7788~SCOTT ~ANALYST ~ 7566~19-APR-87~ 3000~ ~ 20
7839~KING ~PRESIDENT~ ~17-NOV-81~ 5000~ ~ 10
7844~TURNER ~SALESMAN ~ 7698~08-SEP-81~ 1500~ 0~ 30
7876~ADAMS ~CLERK ~ 7788~23-MAY-87~ 1100~ ~ 20
7900~JAMES ~CLERK ~ 7698~03-DEC-81~ 950~ ~ 30
7902~FORD ~ANALYST ~ 7566~03-DEC-81~ 3000~ ~ 20
7934~MILLER ~CLERK ~ 7782~23-JAN-82~ 1300~ ~ 10
14 rows selected. -
Where are these unix executable files coming from and how do I recover the original text file?
where are these unix executable files coming from and how do I recover the original text file?
When you upgraded to Lion did you have AppleWorks installed on your mac?
Most of the AW documents can be opened by Pages 09 or Numbers 09 with most of the orginal format in tact. (I do not know if previouse verision will work) just open the AW file with both and see which one works best.
Text Edit will also open most of the AW files as well but will require a lot of work to restore them to their orginal format.
If you have AW Database documents then they are not supported.
These document show up as "exec icons", Kind: Unix Executagle File.
They also will show up as .cwk file if they are small files. I have a couple that were under 1mb that are shown as " Kind: AppleWorks Document" but will not open.
The only option to open AW database is to have AW installed on a mac with a pre-Lion OS to recover the file. -
How can u insert and retrieve text files in any format using forms6i.
how can u insert and retrieve text files in any format using forms6i.
can u give me an example of an insert statement, let's assume the file is located in the a:drive.
and retrieving the files, i would give the user a list of all the files that are in the database, the user would select one, but what command(or piece of code) would open the file in its apppropriate editor.
e.g .pdf formatted file would open in acrobat.
any help would be appreciated.
Thanks
Hussein Saigerthe filereference class is for downloading and uploading files.
if you want to load xml, use the xml class.
and, if you want to write to an xml file and don't want to use server-side code, wait. -
Converting Excel Output to Text File (Text(MS-DOS)) in oracle 6i
I have been able to save Excel Output to Text File (.txt) using OLE. However, I need to save it as TEXT(MS-DOS) specifically due to certain formatting issues.
Kindly suggest some solution.
I need it very urgently.
Thanks!Hello Sandy,
does this mean that you created an Excel file using OLE and named it *.txt?
And what do you mean by saving as TEXT(MS-DOS)? A csv file?
Regards
Marcus -
HELP ON HOW TO STORE OUTPUT IN TEXT FILE
Hello,
I am trying to output the results from queties into an output text file does anyone knows how to do that please?
For example i want to do :
Select SYSDATE from dual;
and output the result of it in a text file called output.txt does anyone knows how to do that please?
THanks a lot and every help is appreciated.
Regards,
giannisCan i set the path of the output file Yes, you can :
TEST@db102 SQL> spool /tmp/output.txt
TEST@db102 SQL> select sysdate from dual;
SYSDATE
14-JUN-06
TEST@db102 SQL> spool off
TEST@db102 SQL> !ls -ltr /tmp | tail -n 1
-rw-r--r-- 1 ora102 dba 313 Jun 14 01:52 output.txt
TEST@db102 SQL> !cat /tmp/output.txt
TEST@db102 SQL> select sysdate from dual;
SYSDATE
14-JUN-06
TEST@db102 SQL> spool off
TEST@db102 SQL> -
How to generate complete file list of hard drive and output to text file
I need to start backing things up to drives, which over time will be put in storage.
I would like to be able to create a complete file index and folder tree of every drive and have it output to a text file so that in the event I ever need to go back to a drive, I can search the text file to know what drive to pull from storage (rather than using spotlight to search through 25 drives).
Is there any way to do this with either OS X or with a third party software? Ideally, text file and not PDF.
Thanks!You can use the terminal.app with the following command:
rsync -rlptn --stats --progress +Source.. Destination..+
example with actual output:
rsync -rlptn --stats --progress /Volumes/Mac\ Data/websites /Volumes/EXT\ SATA2building file list ...
146 files to consider
websites/
websites/.DS_Store
websites/bestelectricbill.com/
websites/bestelectricbill.com/.DS_Store
websites/bestelectricbill.com/211299c1
websites/bestelectricbill.com/awards.php
websites/bestelectricbill.com/careers.php
websites/bestelectricbill.com/category1.php
websites/bestelectricbill.com/category2.php
websites/bestelectricbill.com/category3.php
websites/bestelectricbill.com/checkout.php
websites/bestelectricbill.com/company.php
websites/bestelectricbill.com/contactus.php
websites/bestelectricbill.com/email.js
websites/bestelectricbill.com/faqs.php
websites/bestelectricbill.com/fsp.js
websites/bestelectricbill.com/history.php
websites/bestelectricbill.com/index.php
websites/bestelectricbill.com/index_copy.php
websites/bestelectricbill.com/investors.php
websites/bestelectricbill.com/job1.php
websites/bestelectricbill.com/job2.php
websites/bestelectricbill.com/job3.php
websites/bestelectricbill.com/job4.php
websites/bestelectricbill.com/job5.php
websites/bestelectricbill.com/managementteam.php
websites/bestelectricbill.com/news1.php
websites/bestelectricbill.com/news2.php
websites/bestelectricbill.com/news3.php
websites/bestelectricbill.com/news4.php
websites/bestelectricbill.com/news5.php
websites/bestelectricbill.com/newsandevents.php
websites/bestelectricbill.com/partners.php
websites/bestelectricbill.com/press.php
websites/bestelectricbill.com/privacypolicy.php
websites/bestelectricbill.com/product1a.php
websites/bestelectricbill.com/product1a1.php
websites/bestelectricbill.com/product1a2.php
websites/bestelectricbill.com/product1b.php
websites/bestelectricbill.com/product1b1.php
websites/bestelectricbill.com/product1b2.php
websites/bestelectricbill.com/product1c.php
websites/bestelectricbill.com/product1c1.php
websites/bestelectricbill.com/product1c2.php
websites/bestelectricbill.com/product1d.php
websites/bestelectricbill.com/product1d1.php
websites/bestelectricbill.com/product1d2.php
websites/bestelectricbill.com/product1e.php
websites/bestelectricbill.com/product1e1.php
websites/bestelectricbill.com/product1e2.php
websites/bestelectricbill.com/products.php
websites/bestelectricbill.com/productsearch.php
websites/bestelectricbill.com/registration.php
websites/bestelectricbill.com/search.php
websites/bestelectricbill.com/searchresults.php
websites/bestelectricbill.com/service1.php
websites/bestelectricbill.com/service1a.php
websites/bestelectricbill.com/service1a1.php
websites/bestelectricbill.com/service1a2.php
websites/bestelectricbill.com/service1b.php
websites/bestelectricbill.com/service1b1.php
websites/bestelectricbill.com/service1b2.php
websites/bestelectricbill.com/service1c.php
websites/bestelectricbill.com/service1c1.php
websites/bestelectricbill.com/service1c2.php
websites/bestelectricbill.com/service1d.php
websites/bestelectricbill.com/service1d1.php
websites/bestelectricbill.com/service1d2.php
websites/bestelectricbill.com/service1e.php
websites/bestelectricbill.com/service1e1.php
websites/bestelectricbill.com/service1e2.php
websites/bestelectricbill.com/service2.php
websites/bestelectricbill.com/service3.php
websites/bestelectricbill.com/services.php
websites/bestelectricbill.com/shoppingcart.php
websites/bestelectricbill.com/sitemap.php
websites/bestelectricbill.com/story1.php
websites/bestelectricbill.com/story2.php
websites/bestelectricbill.com/story3.php
websites/bestelectricbill.com/termsofuse.php
websites/bestelectricbill.com/Templates/
websites/bestelectricbill.com/Templates/siteassist_config.cfg
websites/bestelectricbill.com/Templates/siteassist_template.dwt.php
websites/bestelectricbill.com/Templates/_notes/
websites/bestelectricbill.com/Templates/_notes/dwsync.xml
websites/bestelectricbill.com/_notes/
websites/bestelectricbill.com/_notes/dwsync.xml
websites/bestelectricbill.com/images/
websites/bestelectricbill.com/images/.DS_Store
websites/bestelectricbill.com/images/app_img17.jpg
websites/bestelectricbill.com/images/bestelectriclogo.jpg
websites/bestelectricbill.com/images/bestelectriclogo.jpg.ori.jpg
websites/bestelectricbill.com/images/btn_saveBusiness.jpg
websites/bestelectricbill.com/images/btn_saveHome.jpg
websites/bestelectricbill.com/images/imgAbout_OverviewTeam copy.jpg
websites/bestelectricbill.com/images/imgCollage.jpg
websites/bestelectricbill.com/images/imgComp1.jpg
websites/bestelectricbill.com/images/imgComp3.jpg
websites/bestelectricbill.com/images/imgComp4.jpg
websites/bestelectricbill.com/images/imgComp5.jpg
websites/bestelectricbill.com/images/imgComp6.jpg
websites/bestelectricbill.com/images/imgComp7.jpg
websites/bestelectricbill.com/images/imgComp8.jpg
websites/bestelectricbill.com/images/phone number.jpg
websites/bestelectricbill.com/images/phone number2.jpg
websites/bestelectricbill.com/images/_notes/
websites/bestelectricbill.com/images/_notes/dwsync.xml
websites/bestelectricbill.com/siteassist_css/
websites/bestelectricbill.com/siteassist_css/color.css
websites/bestelectricbill.com/siteassistcss/mystyles.css
websites/bestelectricbill.com/siteassist_css/navigation.css
websites/bestelectricbill.com/siteassistcss/navigationcolor.css
websites/bestelectricbill.com/siteassist_css/style.css
websites/bestelectricbill.com/siteassist_css/template.css
websites/bestelectricbill.com/siteassistcss/notes/
websites/bestelectricbill.com/siteassistcss/notes/dwsync.xml
websites/bestelectricbill.com/siteassist_images/
websites/bestelectricbill.com/siteassistimages/above_topnavbackground.jpg
websites/bestelectricbill.com/siteassistimages/below_topnavbackground.jpg
websites/bestelectricbill.com/siteassist_images/border.gif
websites/bestelectricbill.com/siteassistimages/bottombackground.jpg
websites/bestelectricbill.com/siteassistimages/brcorner.jpg
websites/bestelectricbill.com/siteassist_images/bubbles.jpg
websites/bestelectricbill.com/siteassistimages/dottedhorizontal.jpg
websites/bestelectricbill.com/siteassistimages/dottedvertical.jpg
websites/bestelectricbill.com/siteassistimages/home_mainbackground.jpg
websites/bestelectricbill.com/siteassistimages/img100x125.gif
websites/bestelectricbill.com/siteassistimages/img160x110.gif
websites/bestelectricbill.com/siteassistimages/img400x197.gif
websites/bestelectricbill.com/siteassistimages/img463x170.gif
websites/bestelectricbill.com/siteassistimages/loginbtn.gif
websites/bestelectricbill.com/siteassistimages/logotraditional.jpg
websites/bestelectricbill.com/siteassistimages/mainfeature.jpg
websites/bestelectricbill.com/siteassistimages/side_navcell.gif
websites/bestelectricbill.com/siteassistimages/side_nav_cellsel.gif
websites/bestelectricbill.com/siteassistimages/side_nav_opengrad.gif
websites/bestelectricbill.com/siteassistimages/side_nav_open_selgrad.gif
websites/bestelectricbill.com/siteassistimages/sidenavbackground.jpg
websites/bestelectricbill.com/siteassist_images/spacer.gif
websites/bestelectricbill.com/siteassistimages/topbackground.jpg
websites/bestelectricbill.com/siteassistimages/topnavbackground.jpg
websites/bestelectricbill.com/siteassistimages/topnav_cellbg.gif
websites/bestelectricbill.com/siteassistimages/topnav_cell_bghover.gif
websites/bestelectricbill.com/siteassistimages/trcorner.jpg
websites/bestelectricbill.com/siteassistimages/notes/
websites/bestelectricbill.com/siteassistimages/notes/dwsync.xml
Number of files: 146
Number of files transferred: 135
Total file size: 1150921 bytes
Total transferred file size: 1150921 bytes
Literal data: 0 bytes
Matched data: 0 bytes
File list size: 2825
File list generation time: 0.001 seconds
File list transfer time: 0.000 seconds
Total bytes sent: 3717
Total bytes received: 896
sent 3717 bytes received 896 bytes 9226.00 bytes/sec
total size is 1150921 speedup is 249.50
Simply copy and and paste output text in terminal to a text file.
What I actually did there was use the "dry run option" (-n) - no files were actually transferred.
For more info on the rsync command type and run "man rsync" at the terminal command line.
Also see this webpage:
http://www.ss64.com/osx/rsync.html
Kj -
How to save input from a text file in to array
I got this assignment, and almost have no clue, and my teacher doesn't even teaches us anything
This is what i am suppose to do
5. The program must store the following data about each student in this Talent Show:
* The student's name (store as a String)
* The student's average time score [only for the events they competed in] (store as a Double)
Note: Some of the data comes directly from the text file, and some of the data must be calculated from the data that is read from the file.
6. The program must search through all of the student's scores to find the student who has the minumum average time of all students.
7. You must calculate how many events each student played. Zero values are not counted.
8. You must then generate a report on the screen that prints out
* the total number of students in the competition,
* the winning student's ...
o name
o times
o average time (rounded to one decimal places)
Sample output
btw this is the data file
Bart Simpson
7.5
12.3
7.8
19.2
9.9
5.3
8.5
11.8
2.2
4.6
Stewie Griffin
9.5
29.7
7.8
22.5
9.9
12.6
8.5
0
8.2
0
Pinky
2.5
0
1.8
0
3.9
0
6.5
0
5.2
12.1
Rocky N Bullwinkle
10.0
22.2
9.5
17.5
9.9
1.5
8.7
23.7
9.2
11.0
Angelica Pickles
5.5
11.1
6.8
12.2
7.9
13.3
8.1
5.1
7.2
7.9
Pink Panther
8.5
5.5
8.8
6.6
8.9
7.7
9.9
8.8
2.2
9.9
Josie
9.5
0
8.8
12.2
9.9
0
8.5
0
9.2
5.3
Rogue
8.5
1.1
7.8
2.2
7.9
3.3
7.5
4.4
8.2
5.5
Usagi Tsukino
8.5
15.5
8.8
30.1
9.9
19.7
9.5
11.0
8.2
8.6
Yosemite Sam
0
15.2
0
29.5
3.9
0
0
16.0
0
7.7
My code so far
import java.io.*;
public class test
public static void main (String [] args)
FileInputStream File1;
DataInputStream In;
String fileInput = "";
try
File1 = new FileInputStream ("data.txt");
In = new DataInputStream (File1);
while (In.available () > 0)
fileInput = In.readLine ();
System.out.println (fileInput);
In.close ();
catch (FileNotFoundException e)
System.out.println ("Error - this file does not exist");
catch (IOException e)
System.out.println ("error=" + e.toString ());
}My question, how do i save the data in to an array, and how do i seperatly save names in to different array, and their scores in to different arrays
bte he said you can use scanner class
Thanks
Edited by: supahsain08 on Mar 26, 2008 2:55 PMsupahsain08 wrote:
Well, you are not in my class and you don't even know my teacher
who are you to judge meHe is jaded by our experiences here. 99% of posters who complain that the teacher doesn't teach have adequate (note that I didn't say good) teachers, but it's the student who is failing to take responsibility for his own education. It is after all your responsibility and complaining won't help you any.
Good luck. -
File adapter-How to set line break in text file-split record into two lines
Dear Guru's,
I have to solve following problem with XML (with mulitiple records) to TEXT file scenario using file adapter. I have to output for ever ONE data record in XML always two identical lines in text file. Second line should have a little bit different mapping in few fields like date,... So I did duplicate fileds in my output structure in mapping and need to know how to set line break in the middle and see half of structure in first line and next structure half in second line
My output structure in mapping is:
CASHFLOW
- INTERFACE
- GESELLSCHAFT
- ANWENDUNG
- PRODUKT
- VERTRAG
- BETRAG
- WAEHRUNG
- DIRECTION
- BEWEGUNGSTYP
- FAELLIGKEIT
- ZINSFESTSTELLUNG
- ZAHLUNGSTAG
- RENDITE
- INTERFACE2
- GESELLSCHAFT2
- ANWENDUNG2
- PRODUKT2
- VERTRAG2
- BETRAG2
- WAEHRUNG2
- DIRECTION2
- BEWEGUNGSTYP2
- FAELLIGKEIT2
- ZINSFESTSTELLUNG2
- ZAHLUNGSTAG2
- RENDITE2
Question is how can I set on receiving file adapter in Content Conversion Parameters that fields from first structure half INTERFACE...RENDITE should be outputed in one line and fields from second half of structure INTERFACE2...RENDITE2 should start on second line in final text file.
I'm getting at the moment one line only and I need to know how can set line break so that second line starting with INTERFACE2(CA)...RENDITE2 will start in new line.
CA,"0100","7","512",20090127010001,-12454762586.6800,"EUR",2,12,2009-01-28,2009-01-27,2009-01-28,"0.0000000",CA,"0100","7","512",20090127010001,-12454762586.6800,"EUR",1,10,2009-01-27,2009-01-27,2009-01-27,"0.0000000"
This should be final output:
CA,"0100","7","512",20090127010001,-12454762586.6800,"EUR",2,12,2009-01-28,2009-01-27,2009-01-28,"0.0000000"
CA,"0100","7","512",20090127010001,-12454762586.6800,"EUR",1,10,2009-01-27,2009-01-27,2009-01-27,"0.0000000"
My file adapter settings:
RecordsetStructure=CASHFLOW
CASHFLOW.fieldNames=INTERFACE,GESELLSCHAFT,ANWENDUNG,PRODUKT,VERTRAG,BETRAG,WAEHRUNG,DIRECTION,BEWEGUNGSTYP,FAELLIGKEIT,ZINSFESTSTELLUNG,ZAHLUNGSTAG,RENDITE
CASHFLOW.fieldSeparator=,
CASHFLOW.endSeparator='nl'
CASHFLOW.fieldNames=INTERFACE2,GESELLSCHAFT2,ANWENDUNG2,PRODUKT2,VERTRAG2,BETRAG2,WAEHRUNG2,DIRECTION2,BEWEGUNGSTYP2,FAELLIGKEIT2,ZINSFESTSTELLUNG2,ZAHLUNGSTAG2,RENDITE2
CASHFLOW.fieldSeparator=,
It wont help if I add two identical structures in mapping because in output i would see for multiple entries section with first lines only and after that section with second lines only. And CASHFLOW is one part of more complex mapping ...
(This is final output structure RecordsetStructure=HEADER,CASHFLOW,CONDITION,REFERENCE,CONTRACT - more sections with different data and all these should have duplicate lines at the end)
Thanks a lot for any help
Cheers
Marian
Edited by: Marian Luscon on Jul 14, 2009 11:44 AMHi Ivan,
right, I did test just for sure.
Putting constant 'nl' into field CASHFLOW-INTERFACE1 didnt help - still getting one line instead two lines.
CA ,"0100" ,"7" ,"512" ,20090127GTP101 ,-12454762586.6800 ,"EUR" ,2 ,12 ,2009-01-28 ,2009-01-27 ,2009-01-28 ,"0.0000000" ,'nl' ,"GTP1" ,"7" ,"512" ,20090127GTP101 ,-12454762586.6800 ,"EUR" ,1 ,10 ,2009-01-27 ,2009-01-27 ,2009-01-27 ,"0.0000000"
So there is still question. Is there any way (mapping,...) how to output always 2 lines in text file for one record in XML. It always does 1 record in mapping structure = 1 line but we need 2 lines ...
Example:
Input: 4 records in XML
Output: 8 lines in final text file ...
Thanks to you all guys
Marian
Maybe you are looking for
-
Static library not accessed properly after Solaris Kernel patch update !
Hi, We are facing a sever issue in our application after our customer updated the Solaris 10 kernel patch u9 to u10. We have two static libraries libdlib.a and libDLIB.a, with exactly same code base, but these two libraries are scattered across the c
-
BusinessObjects XI3.1 SP4 with SAP BW 7.01 SP9
Hello all! I have the universe which is build on Bex query. When I create a WebI report in Rich Client some values are not coming. I checked the universe, the objects are mapped to the correct BW objects, checked the data in BW cube, data exist. In t
-
Disabling/Hiding Approve button UWL Inbox
Hi, Currently I am working on SRM upgrade project . How to remove/hide approve button in UWL inbox. Below xml code, using in UWL configuration file in portal: <ItemType name="uwl.task.webflow.srm.TS90000005.SAP_SRM" connector="WebFlowConnector" defau
-
With windows internet explorer you can very easely pin point all your favourit websites on the left side of the screen when you open IE. I want the same for Fire fox.
-
HELP. I'm trying to use my old iPhone 4 on my iHome speakers and I do not remember my passcode