hi
I want to call a shell script in C program
the script is : ssh -t user@remote sh /<remote>home/user/<file_name>.sh
and other several commands
C program : Call this script and the retrive the task that is been done in <file_name>.sh file
can any one tell me how... (5 Replies)
Hello All,
I am a newbie in Shell script programming, and maybe you can help me with my query.
I need to write a shell script (mntServer.ksh) that will start a background process and also to be able to run another script.
The mntServer.ksh script contains:
#!/bin/ksh... (1 Reply)
Hi Gurus,
Is it possible to include perl script with in the unix shell script?
What would be the general syntax?
In the above case, is it required to write the below first two lines of codes?
#!usr/bin/sh -x
#!usr/bin/perl -w
Thanks in advance / Mysore Ganapati. (1 Reply)
I used du -hk to determine the file sizes on several projects in CVS for a developer i am supporting and he asked me to include history for these projects to get total file size.
Was du -hk correct to determine the total size?
---------- Post updated at 09:09 AM ---------- Previous update... (2 Replies)
i want use ssh on the host01 to execute autoexec.sh on the host02 like following :
host01> ssh host02 autoexec.sh
autoexec.sh include nohup command like follwing :
nohup /home/jack/deletedata.sh &
after i execute ssh host02 autoexec.sh one the host01. i can't found deletedata.sh... (1 Reply)
Hi All,
I'm a newbie here, i'm just wondering how can i include my sftp command, here is my code. see below.
test -f /home/1.txt && sed -i "s/$/&,pogi" /home/1.txt
my sftp command: how can i insert my sftp command in my code above?
sftp ${USER}@${HOST} <<-EOF
cd ${INPUT_DONE}
... (0 Replies)
Hi there
Well, it's my first time on this board, so short to myself:
I'm matibaski, working as a webdeveloper and also as a system administrator on ubuntu server machines.
The problem:
I created a small apache-hostingscript by myself and it works fine.
But after some addings and new... (1 Reply)
I have a shell script (.sh) and I want to pass a parameter value to the awk command but I am getting exception, please assist.
diff=$1$2.diff
id=$2 new=new_$diff
echo "My id is $1"
echo "I want to sync for user account $id"
##awk command I am using is as below
cat $diff | awk... (2 Replies)
Hi Friends,
I have a menu based tool which requires input/option to proceed further. How to make a shell script ?
eg: menu looks like
Get_data.sh
to continue (y/n) :
Here I need to key in "y" to proceed.
I want to prepare a script which should consider option y. (5 Replies)
Discussion started by: suresh3566
5 Replies
LEARN ABOUT DEBIAN
ppix::editortools::renamepackagefrompath
PPIx::EditorTools::RenamePackageFromPath(3pm) User Contributed Perl Documentation PPIx::EditorTools::RenamePackageFromPath(3pm)NAME
PPIx::EditorTools::RenamePackageFromPath -Change the package name based on the files path
SYNOPSIS
my $munged = PPIx::EditorTools::RenamePackageFromPath->new->rename(
code => "package TestPackage;
use strict;
BEGIN {
$^W = 1;
}
1;
",
filename => './lib/Test/Code/Path.pm',
);
my $new_code_as_string = $munged->code;
my $package_ppi_element = $munged->element;
DESCRIPTION
This module uses PPI to change the package name of code.
METHODS
new()
Constructor. Generally shouldn't be called with any arguments.
rename( ppi => PPI::Document $ppi, filename => Str ) =item rename( code => Str $code, filename => Str )
Accepts either a "PPI::Document" to process or a string containing the code (which will be converted into a "PPI::Document") to
process. Replaces the package name with that supplied in the "filename" parameter and returns a "PPIx::EditorTools::ReturnObject" with
the new code available via the "ppi" or "code" accessors, as a "PPI::Document" or "string", respectively.
An attempt will be made to derive the package name from the filename passed as a parameter. The filename's path will converted to an
absolute path and it will be searched for a "lib" directory which will be assumed the start of the package name. If no "lib" directory
can be found in the absolute path, the relative path will be used.
Croaks with a "package name not found" exception if unable to find the package name.
SEE ALSO
This class inherits from "PPIx::EditorTools". Also see App::EditorTools, Padre, and PPI.
perl v5.14.2 2012-03-11 PPIx::EditorTools::RenamePackageFromPath(3pm)