09-03-2018
How can we help you? What's your question? What isn't working? How is it not working? What's the desired result that you are not getting? What's your intend?
This User Gave Thanks to Aia For This Post:
9 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi.
I write a shell script for import data to oracle using sql loader.
I set permission 755 or 777 for that script. I can run that script in the consol okay.
When I call it from PHP using system command. I got return value 126 this value when don't have permission right ?
I check step... (2 Replies)
Discussion started by: raccsdl
2 Replies
2. Shell Programming and Scripting
Hello,
I have written a code for uploading a file onto the server.The code is as follows:
<? if ($_POST == "Upload File")
{
if( move_uploaded_file ($_FILES ,$target) )
{
$tmpsrc = $_FILES ;
echo... (2 Replies)
Discussion started by: michrods
2 Replies
3. Shell Programming and Scripting
Hi,
I have a sheel script that invokes a perl script...Now, instead havin the perl script as a separate file I'd like put the contents in the sheel script itself...But I am not sure how ro run that perl script contents.please help me
Thanks (1 Reply)
Discussion started by: vijay_0209
1 Replies
4. Shell Programming and Scripting
Hi,
I have more than 1 files in the directory. In bash, I can use
cd /work
for x in `ls`
do
:
:
done
to run for each file in the directory.
How about in perl script?
filepath="ABC1"
open(FILE, $filepath) or die "$filepath cannot be opened.";
while(<FILE>) {
: (1 Reply)
Discussion started by: natalie23
1 Replies
5. Shell Programming and Scripting
I have a local linux machine in which the files are dumped by a remote ubuntu server. If the process in remote server has any problem then empty files are created in local machine. Is there any way using perl script to check if the empty files are being created and delete them and then run a shell... (2 Replies)
Discussion started by: hussa1n
2 Replies
6. Shell Programming and Scripting
Is it possible to dry run a php script without actually executing it? Say I need to test the output of a php file to see if it matches a pattern. I need to run this on all php files on the server. But I fear if there are php files that make modifications, sends out mail etc, that should not happen.... (1 Reply)
Discussion started by: anilcliff
1 Replies
7. Shell Programming and Scripting
I want to execute my shell script on remote machine using SSH in perl script.
Please help me with syntax. (2 Replies)
Discussion started by: james1988
2 Replies
8. Shell Programming and Scripting
echo $result=exec("./permit.sh".$_FILES);
pls suggest some other method to run shell script in php .:wall::mad: (0 Replies)
Discussion started by: upvan111
0 Replies
9. Shell Programming and Scripting
Hi all,
I have the following Perl script which is intended to run a Shell script and generate some logging for the purposes of tracking weather or not the script ran.
I get an error, of course, since I don't know what I'm doing really.
Here is the code:
#!/opt/perl/bin/perl -w
... (14 Replies)
Discussion started by: zixzix01
14 Replies
LEARN ABOUT REDHAT
tcl_chdir
Tcl_GetCwd(3) Tcl Library Procedures Tcl_GetCwd(3)
__________________________________________________________________________________________________________________________________________________
NAME
Tcl_GetCwd, Tcl_Chdir - manipulate the current working directory
SYNOPSIS
#include <tcl.h>
char *
Tcl_GetCwd(interp, bufferPtr)
int
Tcl_Chdir(path)
ARGUMENTS
Tcl_Interp *interp (in) Interpreter in which to report an error, if any.
Tcl_DString *bufferPtr (in/out) This dynamic string is used to store the current working directory. At the time of the call it should
be uninitialized or free. The caller must eventually call Tcl_DStringFree to free up anything stored
here.
char *path (in) File path in UTF-8 format.
_________________________________________________________________
DESCRIPTION
These procedures may be used to manipulate the current working directory for the application. They provide C-level access to the same
functionality as the Tcl pwd command.
Tcl_GetCwd returns a pointer to a string specifying the current directory, or NULL if the current directory could not be determined. If
NULL is returned, an error message is left in the interp's result. Storage for the result string is allocated in bufferPtr; the caller
must call Tcl_DStringFree() when the result is no longer needed. The format of the path is UTF-8.
Tcl_Chdir changes the applications current working directory to the value specified in path. The format of the passed in string must be
UTF-8. The function returns -1 on error or 0 on success.
KEYWORDS
pwd
Tcl 8.1 Tcl_GetCwd(3)