Fscript, fscripter and the unix shell
I am starting to play with Fscript and have yet to decide if I hate it. One thing I would like to be able to do is embed Fscripts within unix shell scripts. Anyone know how to do this?
I can write an fscript script invoking with
#!/usr/local/bin/fscripter
and it runs ok, but the example I am using, a currency converter, won't take input in its dialog boxes. (It works fine from Fscript's own interpreter). So maybe this idea isn't a good one to pursue, but I have been trying to embed fscript within a unix shell script using the usual Here Document formalism, and it doesn't work, at least in my hands.
Anyone have this working?
Well? Out with it!
Similar Messages
-
Can I go directly to "root" in the Unix shell?
I've been doing a lot of stuff lately in the Unix shell and a lot of it requires
running as root. I find that I can't "su" directly to root, but rather have
to su to an admin account and then su to root, which gets a little
annoying.
Is there any way I can change this (besides making my account
into an admin account, which the local security people frown
on)?
Thanks,
EricAssuming you are logged in as the Mac OS X admin, then you just enter the 'sudo' command and when prompted for a password, you enter YOUR password.
id -a
# vs
sudo id -a
sudo chown $USER:staff /some/path/to/a/file
sudo nano /etc/hosts
sudo command options and arguments you want run as root
as an example. -
How to get the Unix shell promp in OS X
How do I get the Unix shell prompt or its equivalent in OS X?
Still could not find it. I install the package:
mysql-5.5.2-m2-osx10.6-x86
Here is what the read me file says:
2.4.10 Installing MySQL on Mac OS X
You can install MySQL on Mac OS X 10.3.x (`Panther') or newer using a
Mac OS X binary package in PKG format instead of the binary tarball
distribution. Please note that older versions of Mac OS X (for example,
10.1.x or 10.2.x) are not supported by this package. -
Fle import the unix shell script
hi all
I want to develop unix shell script & cron job to read ftp file and call an oracle procedure to import the data in an oracle database
can any one tell me how to go about it ?
also does any one have some documentation related to the topic
plzzz help me
mandarHi,
I want to develop unix shell script & cron job to read ftp file and call
an oracle procedure to import the data in an oracle databaseYou can
1/ use ftp to get the file to Oracle Instance host then call a Proc/Package that'll parse the file.
2/ write/find on google a FTP package using UTL_TCP then create a procedure using the package to open the ftp file and parse it.
You don't give much details on what the actual aim is, si I can't be more specific.
can any one tell me how to go about it ?There might be other possibilities, describe what you want to achieve globally and we'll give you more advices.
also does any one have some documentation related to the topicTahiti: http://tahiti.oracle.com
maybe AskTom: http://asktom.oracle.com
Regards,
Yoann. -
Telneting to a remote host and executing unix shell script
I am using VPN.I want to telnet to a remote server and execute some script there and show it the output in my front end..is it easily possible thru java..i know it can be easily done thru Python...can anyone let me knw if this can ve achieved properly thru java..thnx plz let me knw ASAP.
Yes surely I have wriiten the code..
I have first used a Socket to connect to teh host at port 23.
Then i am using outstream to give the user and passwd .. but in my Inputstream i am getting some vague outputs (some symbols..$,%,etc..) This is the code for ur reference....
import java.net.*;
import java.io.*;
class Telclient {
public static void main(String args[]) {
int c;
try{
Socket s=new Socket("abc.net",23);
InputStream in=s.getInputStream();
OutputStream out=out.getoutputStream();
String str="user" + "\n" + "password" + "\n";
byte buf[]=str.getBytes();
out.write(buf);
while((c=in.read()) != -1) {
System.out.println((char)c);
s.close();
Please help with teh code , bcoz its not really working..Need urgent helpI also used TelnetClient from jakarta , but failing to understand
how to use those classes to use..can anyone show me an example... -
Pass commands to UNIX shell opened in Windows XP OS
I am currently running Labview 7.1 on a Windows XP box. I use Exceed to open a UNIX shell to do work in UNIX from my windows machine. I can open the UNIX shell with the sys exec vi but how do I pass commands to the UNIX shell I opened?
Purp1eOne wrote:
I went to the sourceforge site to take a look and started the install process but after looking at the install instructions it says I need a run time engine of 8 or greater which I don't have:
Kind of a novice here but I don't think this will work with LabView 7.1, will it?
Also make sure you have
the LabVIEW 8.2.1 Run-Time Engine installed.
View Member Profile
ipsmenu.register( "post-member-26", '', 'popmenubutton-new', 'popmenubutton-new-out' );
Jul 17 2006, 08:53 PM
Post
#1
Group: JKI Team
Posts: 167
Joined: 10-July 06
Member No.: 7
Note: The LabVIEW 8.0.1 and 8.2.1 run-time engines can co-exist
together with the LabVIEW 8.5 (and newer) run-time engine. You still
need to install the run-time engine's listed below to use VIPM, even if
you have a newer version of LabVIEW installed.
VIPM 1.1 and 2.0
VIPM 1.1 and 2.0 require the LabVIEW 8.2.1 run-time engine installed on your machine.
See also:Where do I get the LabVIEW 8.2.1 Run-Time Engine?
VIPM 1.0
VIPM 1.0 requires the LabVIEW 8.0.1 run-time engine installed on your machine.
See also:
Smercurio is right, and their is no OpenG package for the newer VIs so you will actually want to get them directly from CVS.
Rolf Kalbermatter
Rolf Kalbermatter
CIT Engineering Netherlands
a division of Test & Measurement Solutions -
PL/SQL function - unix shell script
Hello,
I have an application that calls a unix shell script This unix shell script calls a oracle function in the PL/SQL package. For example,
In package pkg_test, there is function f_test. This function returns pls_interger.
How can I write a unix shell script to return the value from the oracle function, so that the application can get the value from the unix shell script?
Many thanks.Thank you for your response.
The Oracle functuion pkg_name.proc_name will return different values, 0, 1, 2, 3 in diffefrent conditions.
The unix script, myscript.ksh calls pkg_name.proc_name.
The other application will call myscript.ksh and this application will need to get the values 0, 1, 2, 3 from myscript.ksh.
Can we make it without using the unix shelll function?
Thanks.
Edited by: slsam01 on Jun 2, 2009 9:21 PM -
Hi everyone,
I was just wondering if anyone knew how to run a .sh file in the UNIX shell cygwin through LabVIEW. I will need to open cygwin (I'm guessing through the sysexec.vi) then I need to load the .sh file into it and keep it open. Does anyone know how I can accomplish this?
ThanksSTigmata08,
For starters, .sh files and cygwin are not something I am familiar with, but for the link below should get you started using cygwin with LabVIEW.
http://zone.ni.com/devzone/cda/tut/p/id/5412
Good luck!
Drew T.
Drew T.
NIC AE Specialist -
JMF in Unix-Shell: No X11 DISPLAY variable was set
Hello guys
I've got a client-server application. The server runs on linux and is started in the unix-shell.
When the server just sends out data which was received before, everything works fine. But when I'm using a processor (or a player) it says:
No X11 DISPLAY variable was set, but this program performed an operation which requires it.
How can I avoid this problem?
Thanks in advance,
ChrisVladimrN wrote:
..No X11 DISPLAY variable was set, but this program performed an operation which requires it.Sounds like the problem of running in a headless environment. A google on "java headless x11" seems to turn up a number of hits. -
I hope someone knows Unix better me. I created a shell script to run some ap comp sci classes, and whenever I want to run the script, I'm forced to type:
"./runMBS", while I want to just type "runMBS". Any suggestions will be nice.
ThanksIf you only type the name of a command (or script) the Unix shell only looks for those commands in the directories specified in the $PATH variable. If you provide a full or partial path to the command then the shell will run the command at that location... that's why including "./" in front of your shell script works... it tells the shell to run the command in the current directory (ie "./").
You can either:
- move your shell script to one of the directories specified in your $PATH variable
or
- add the directory containing your shell script to your $PATH
To modify the $PATH so that it includes the directory your script resides in use something like this in your .bash_profile:
<pre>
PATH=$PATH:/path/to/scriptdir
export PATH
</pre>
Although it's possible to include "./" in your PATH, it's not advisable and can present security problems. Read this explanation for more information.
Steve -
Unix Shell Scripts with Oracle
Any body who can give me the link where I can find the Unix Shell Scripts to access the Oracle database and execute the stored procedures and cursors.
Your unix script will contain (at appropriate places):
sqlplus -s username/pasword@server @your_sql_Script_that_calls_the procedure.SQLor
sqlplus -s / @your_sql_Script_that_calls_the procedure.SQL -
Execute a unix shell script from forms9i
Hi ,
I would like to execute a unix shell script form a form when they pressed a button. The forms server is on Linux machine. I tried but when I pressed the button nothings happen. Could some one please help me how I could get working.
Is there is a way I could execute the unix shell script from PL/SQL proceudre or package.
Please some one help me.
BainYou would not expect to see anything happening because the
script cannot directly send output to the web form. However, you can get it to write output to a file and use web.show_document in the form after the host command to display the file and see the output. -
Generate RMAN backup Script using unix shell script
Hello,
Could somebody give me a unix shell script that would generate RMAN script based on some user defined parameters in a config file.
e.g.
rman.conf
CHANNELS=4
USE_CATALOG=Y
DEVICE='sbt_tabe'
etc.,
many thanks,
kamYou can actually encapsulate the RMAN commands inside the shell script.
However if you really want to create a seperate RMAN script file, you can use the unix shell's "echo" command to write set variables to a file.
Thus, for example,
echo "rman target / catalog rman/rmanpassword@crcat" > RMAN_Script.rmn
echo "backup database plus archivelog" >> RMAN_Script.rmn
echo "backup archivelog all" >> RMAN_Script.rmn
creates RMAN_Script.rmn with 3 commands. -
Can i call unix shell script from B2B callout.
Hi,
We had a requirement to invoke a unix shell script from B2B callout implemented class. Here is the code in implementation class:
public void execute(CalloutContext context,List input,List output)
throws CalloutDomainException, CalloutSystemException {
try {
CalloutMessage cmIn = (CalloutMessage)input.get(0);
FileOutputStream fos = null;
String inputFile = "/home/orasoad/digitalsign/input/test.txt";
String outputFile = "/home/orasoad/digitalsign/output/test.txt.gpg";
File outFile = new File(inputFile);
String str =cmIn.getBodyAsString();
fos = new FileOutputStream(outFile);
Writer out = new OutputStreamWriter(fos);
out.write(str);
out.close();
String shellFile = "/home/orasoad/digitalsign/dg.sh";
String cmd[] = new String[] { shellFile, inputFile, outputFile };
Runtime rt = Runtime.getRuntime();
Process pr = rt.exec(cmd);
int i = pr.waitFor();
BufferedReader br = new BufferedReader(new InputStreamReader(pr.getInputStream()));
StringBuffer sb = new StringBuffer();
String line;
while ((line = br.readLine()) != null) {
sb.append(line);
CalloutMessage cmOut = new CalloutMessage(sb.toString());
output.add(cmOut);
} catch (Exception e) {
throw new CalloutDomainException(e);
We were able to execute the unix shell script from standalone java class with same code. But some how it is not working as expected while invoking the B2B java callout.
Is it possible to invoke unix shell script from B2B callout?
Please give inputs.
Regards,Though it's not a good idea to invoke shell scripts from java callout but technically it will work.
But some how it is not working as expected while invoking the B2B java callout.What is not working as expected? Any error in the log (server-diagnostic.log or server.out)?
Regards,
Anuj -
Running SQLPLUS from UNIX shell script
I'm not sure if this is the right forum, but...
How can I execute a sql file from inside the UNIX shell script, logging on to Oracle w/o supplying a UID/pwd? Normally, we log into UNIX using our own logon, then sudo as another user to login to Oracle. Now, I'm trying to create a UNIX shell script, where I'm already sudo'd as the UserID that logs into Oracle. I've tried the following, but can't get it to work. I'm a UNIX scripting noob. Any ideas?
example:
#! /usr/bin/ksh
sqlplus / \@test.sql << EOF
exit;
EOFI'm a UNIX scripting noob.In which case I feel obligated to point you at William Robertson's excellent article Database Shellscripts Considered Harmful. Save yourself a world of pain.
Cheers, APC
Maybe you are looking for
-
I created a link to an image in a slideshow that opens a single image in a new _Blank page. The original gallery page stays open and the slide show continues. On the newly opened page, I have order buttons and additional information about the image.
-
Vendor Master - Restrict Change of fields
Hi Guys, Is it possible to grey out certain fields in vendor master so that they cannot be changed? While using FK02 or XK02, I want certain fields to be greyed out so users cannot change. And is it possible to develop a new transaction code using wh
-
I have microsoft 8.1 and Adobe 11.1.06 and I get a permissions error everytime I attempt to enter data into a form. How do I get rid of this annoying message?
-
Highlight some of the rows in a datagrid
Hi I'm new to Flex. My question is: Say I have a datagrid and I upload a CSV and show the data on the grid. After that I save these values to the DB. I'm using Arraycollection. Now say all the rows are not imported as a few of them are invalid data.
-
DPM2012 Sp1 not protecting jpg or tif files
Hello, I am using DPM2012 to protect several file servers in my domain. I noticed today that DPM is not protecting any .jpg or .tif files. I checked the protection group and have no exceptions. What could be causing this behavior? Thanks in advance f